diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-11-13 07:10:54 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-11-13 07:10:54 +0000 |
| commit | 0a3f5bd985c689ffb11ac15fe58ae187e717fc98 (patch) | |
| tree | c8d0aff623b7d5b4f151e006d6c104a7a9319375 /dev-python/sip/files/sip-6.12.0-python314-test.patch | |
| parent | ac942086f3636e423a33fc17436d1ae2e2764ec1 (diff) | |
| download | srcux-0a3f5bd985c689ffb11ac15fe58ae187e717fc98.tar.gz srcux-0a3f5bd985c689ffb11ac15fe58ae187e717fc98.tar.xz srcux-0a3f5bd985c689ffb11ac15fe58ae187e717fc98.zip | |
Adding metadata
Diffstat (limited to 'dev-python/sip/files/sip-6.12.0-python314-test.patch')
| -rw-r--r-- | dev-python/sip/files/sip-6.12.0-python314-test.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/dev-python/sip/files/sip-6.12.0-python314-test.patch b/dev-python/sip/files/sip-6.12.0-python314-test.patch deleted file mode 100644 index f1da2f14f8c3..000000000000 --- a/dev-python/sip/files/sip-6.12.0-python314-test.patch +++ /dev/null @@ -1,30 +0,0 @@ -https://github.com/Python-SIP/sip/issues/82 -https://github.com/philthompson10/sip/commit/e967ea0ae77c45ab5f8a411390d1acf1e0bb394e ---- a/test/movable/test_movable.py -+++ b/test/movable/test_movable.py -@@ -24,5 +24,10 @@ - -+ # As of Python v3.14 we can't make assumptions about initial -+ # reference counts so we test for increases and decreases rather than -+ # absolute values. -+ ao_base_refcount = getrefcount(ao) -+ - # Test the value of the object. - self.assertEqual(ao.getValue(), 3) -- self.assertEqual(getrefcount(ao), 2) -+ self.assertEqual(getrefcount(ao), ao_base_refcount) - -@@ -33,3 +38,3 @@ - ow.setObject(ao) -- self.assertEqual(getrefcount(ao), 3) -+ self.assertEqual(getrefcount(ao), ao_base_refcount + 1) - self.assertEqual(ow.getObjectValue(), 4) -@@ -38,3 +43,2 @@ - ao2 = ow.takeObject() -- self.assertEqual(getrefcount(ao2), 2) - self.assertEqual(ow.getObjectValue(), -1000) -@@ -45,3 +49,3 @@ - # Check that the original Python object no longer wraps the C++ object. -- self.assertEqual(getrefcount(ao), 2) -+ self.assertEqual(getrefcount(ao), ao_base_refcount) - self.assertRaises(RuntimeError, ao.getValue) |
