Hide Forgot
python-jep fails to build with Python 3.12.0a3. ====================================================================== ERROR: test_deepList (test_call.TestTypes.test_deepList) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/jep-3.9.1/src/test/python/test_call.py", line 76, in test_deepList self.assertEquals(self.test, result[0]) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestTypes' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? ====================================================================== ERROR: test_observer (test_call.TestTypes.test_observer) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/jep-3.9.1/src/test/python/test_call.py", line 118, in test_observer self.assertEquals(len(a), 1) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestTypes' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? ====================================================================== ERROR: test_inner_class (test_import.TestImport.test_inner_class) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/jep-3.9.1/src/test/python/test_import.py", line 47, in test_inner_class self.assertEquals(Thread.currentThread().getState(), Thread.State.RUNNABLE) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestImport' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? ====================================================================== ERROR: testDirect (test_numpy.TestNumpy.testDirect) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/jep-3.9.1/src/test/python/test_numpy.py", line 173, in testDirect self.assertIntDirect(buffer) File "/builddir/build/BUILD/jep-3.9.1/src/test/python/test_numpy.py", line 154, in assertIntDirect self.assertEquals(1, buffer.get(0)) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestNumpy' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? ====================================================================== ERROR: testDirectArgReturn (test_numpy.TestNumpy.testDirectArgReturn) Tests making a python ndarray from a java DirectNDArray. ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/jep-3.9.1/src/test/python/test_numpy.py", line 138, in testDirectArgReturn self.assertEquals(1, ndarray2[0]) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestNumpy' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? ====================================================================== ERROR: testDirectNative (test_numpy.TestNumpy.testDirectNative) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/jep-3.9.1/src/test/python/test_numpy.py", line 186, in testDirectNative self.assertIntDirect(buffer) File "/builddir/build/BUILD/jep-3.9.1/src/test/python/test_numpy.py", line 154, in assertIntDirect self.assertEquals(1, buffer.get(0)) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestNumpy' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? ====================================================================== ERROR: testPassingDirect (test_numpy.TestNumpy.testPassingDirect) Test that when a numpy ndarray created from a java direct buffer is ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/jep-3.9.1/src/test/python/test_numpy.py", line 210, in testPassingDirect self.assertEquals(1, ndarray2[0]) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestNumpy' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? ====================================================================== ERROR: testScalarBoxing (test_numpy.TestNumpy.testScalarBoxing) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/jep-3.9.1/src/test/python/test_numpy.py", line 220, in testScalarBoxing self.assertEquals('java.lang.Float', getClass(numpy.float32(1.5)).java_name) ^^^^^^^^^^^^^^^^^ AttributeError: 'TestNumpy' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? ====================================================================== ERROR: test_java_name (test_object.TestObject.test_java_name) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/jep-3.9.1/src/test/python/test_object.py", line 21, in test_java_name self.assertEquals(Object.java_name, "java.lang.Object") ^^^^^^^^^^^^^^^^^ AttributeError: 'TestObject' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'? Removed many old deprecated unittest features: - A number of TestCase method aliases: | Deprecated alias | Method Name | Deprecated in | +-----------------------|------------------------|---------------+ | failUnless | assertTrue() | 3.1 | | failIf | assertFalse() | 3.1 | | failUnlessEqual | assertEqual() | 3.1 | | failIfEqual | assertNotEqual() | 3.1 | | failUnlessAlmostEqual | assertAlmostEqual() | 3.1 | | failIfAlmostEqual | assertNotAlmostEqual() | 3.1 | | failUnlessRaises | assertRaises() | 3.1 | | assert_ | assertTrue() | 3.2 | | assertEquals | assertEqual() | 3.2 | | assertNotEquals | assertNotEqual() | 3.2 | | assertAlmostEquals | assertAlmostEqual() | 3.2 | | assertNotAlmostEquals | assertNotAlmostEqual() | 3.2 | | assertRegexpMatches | assertRegex() | 3.2 | | assertRaisesRegexp | assertRaisesRegex() | 3.2 | | assertNotRegexpMatches| assertNotRegex() | 3.5 | +-----------------------|------------------------|---------------+ You can use https://github.com/isidentical/teyit to automatically modernise your unit tests. - Undocumented and broken TestCase method assertDictContainsSubset (deprecated in Python 3.2). - Undocumented TestLoader.loadTestsFromModule parameter use_load_tests (deprecated and ignored since Python 3.2). - An alias of the TextTestResult class: _TextTestResult (deprecated in Python 3.2). (Contributed by Serhiy Storchaka in bpo-45162.) https://bugs.python.org/issue?@action=redirect&bpo=45162 https://docs.python.org/3.12/whatsnew/3.12.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.12/fedora-rawhide-x86_64/05129002-python-jep/ For all our attempts to build python-jep with Python 3.12, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/python-jep/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.12: https://copr.fedorainfracloud.org/coprs/g/python/python3.12/ Let us know here if you have any questions. Python 3.12 is planned to be included in Fedora 39. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.12. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
Thanks for letting me know about Python 3.12 and further plannings in Fedora. There's new upstream relase. Can you reproduce noticed test failure with recent version 4.1.1? See rhbz#2003425.
> Can you reproduce noticed test failure with recent version 4.1.1? I am sorry, but there are hundreds of packages failing to build with Python 3.12, we don't have the capacity to update all of them to see if it helps. If you open a PR to https://src.fedoraproject.org/rpms/python-jep we can quickly tell whether it helps or not in https://copr.fedorainfracloud.org/coprs/g/python/python3.12/builds/?dirname=python3.12:pr:<pr_number>
Thanks for your report. Unfortunately, provided backtrace and retrace isn't helpful. Crash seems to happen while event processing (what happened?) somewhere down in libc memory management.
(In reply to Raphael Groner from comment #3) ... please ignore, sorry.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle. Changing version to 38.