diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
| commit | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch) | |
| tree | 0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-python/sabctools/files | |
| parent | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff) | |
| download | baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip | |
Adding metadata
Diffstat (limited to 'dev-python/sabctools/files')
| -rw-r--r-- | dev-python/sabctools/files/sabctools-8.2.6-py314testfix.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/dev-python/sabctools/files/sabctools-8.2.6-py314testfix.patch b/dev-python/sabctools/files/sabctools-8.2.6-py314testfix.patch deleted file mode 100644 index 50b26be43caf..000000000000 --- a/dev-python/sabctools/files/sabctools-8.2.6-py314testfix.patch +++ /dev/null @@ -1,46 +0,0 @@ -diff --git a/tests/test_decoder.py b/tests/test_decoder.py -index 9503923..d45e607 100644 ---- a/tests/test_decoder.py -+++ b/tests/test_decoder.py -@@ -76,29 +76,32 @@ def test_empty(): -
- def test_ref_counts():
- """Note that sys.getrefcount itself adds another reference!"""
-+ # In Python 3.14+, getrefcount returns 1, in earlier versions it returns 2
-+ expected_refcount = 1 if sys.version_info >= (3, 14) else 2
-+
- # Test regular case
- data_plain = read_plain_yenc_file("test_regular.yenc")
- data_out, filename, filesize, begin, end, crc_correct = sabctools_yenc_wrapper(data_plain)
-
-- assert sys.getrefcount(data_plain) == 2
-- assert sys.getrefcount(data_out) == 2
-- assert sys.getrefcount(filename) == 2
-- assert sys.getrefcount(begin) == 2
-- assert sys.getrefcount(end) == 2
-- assert sys.getrefcount(crc_correct) == 2
-+ assert sys.getrefcount(data_plain) == expected_refcount
-+ assert sys.getrefcount(data_out) == expected_refcount
-+ assert sys.getrefcount(filename) == expected_refcount
-+ assert sys.getrefcount(begin) == expected_refcount
-+ assert sys.getrefcount(end) == expected_refcount
-+ assert sys.getrefcount(crc_correct) == expected_refcount
-
- # Test simple error case
- fake_inp = memoryview(bytearray(b"1234"))
-- assert sys.getrefcount(fake_inp) == 2
-+ assert sys.getrefcount(fake_inp) == expected_refcount
- with pytest.raises(ValueError):
- sabctools.yenc_decode(fake_inp)
-- assert sys.getrefcount(fake_inp) == 2
-+ assert sys.getrefcount(fake_inp) == expected_refcount
-
- # Test further processing
- data_plain = read_plain_yenc_file("test_bad_crc_end.yenc")
- with pytest.raises(ValueError):
- sabctools_yenc_wrapper(data_plain)
-- assert sys.getrefcount(data_plain) == 2
-+ assert sys.getrefcount(data_plain) == expected_refcount
-
-
- def test_crc_pickles():
|
