swig/swig-python-3.12.patch
2023-07-12 22:21:36 -06:00

23 lines
758 B
Diff

Immortal objects now have a fixed refcount, which makes this test fail:
checking python testcase langobj (with run test)
Traceback (most recent call last):
File "/builddir/build/BUILD/swig-4.1.1/Examples/test-suite/python/./langobj_runme.py", line 13, in <module>
raise RuntimeError
RuntimeError
make[1]: *** [Makefile:123: langobj.cpptest] Error 1
See https://peps.python.org/pep-0683/ for more information.
--- swig-4.1.1/Examples/test-suite/python/langobj_runme.py.orig 2022-11-30 00:35:05.000000000 -0700
+++ swig-4.1.1/Examples/test-suite/python/langobj_runme.py 2023-07-12 15:48:18.745852293 -0600
@@ -2,7 +2,7 @@ import sys
from langobj import *
-x = "hello"
+x = (1,2)
rx = sys.getrefcount(x)
v = identity(x)
rv = sys.getrefcount(v)