python-messaging fails to build with Python 3.11.0a1. ====================================================================== ERROR: test_md5 (test.message_test.MessageTest) Test message checksum. ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/messaging-1.1/test/message_test.py", line 182, in test_md5 self.iterate(self.__md5) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/messaging-1.1/test/message_test.py", line 59, in iterate func(body_content=bctype, ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/messaging-1.1/test/message_test.py", line 189, in __md5 self.assert_(len(checksum) == 32, "checksum length is not 32") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'MessageTest' object has no attribute 'assert_' ====================================================================== ERROR: test_message_compression (test.message_test.MessageTest) Test message compression. ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/messaging-1.1/test/message_test.py", line 86, in test_message_compression self.assert_(len(jsonified['body']) < length * 0.9, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'MessageTest' object has no attribute 'assert_' ====================================================================== ERROR: test_rndb64 (test.generator_test.MessageTest) test generator.rndb64() ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/messaging-1.1/test/generator_test.py", line 52, in test_rndb64 self.assert_(len(b64) == index, "size not expected") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'MessageTest' object has no attribute 'assert_' ====================================================================== ERROR: test_rndbin (test.generator_test.MessageTest) test generator.rndbin() ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/messaging-1.1/test/generator_test.py", line 44, in test_rndbin self.assert_(len(binary) == index, "size not expected") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'MessageTest' object has no attribute 'assert_' ====================================================================== ERROR: test_rndint (test.generator_test.MessageTest) test generator.rndint() ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/messaging-1.1/test/generator_test.py", line 35, in test_rndint self.assert_(integer >= 0 and integer <= index * 2, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'MessageTest' object has no attribute 'assert_' checking DQN queue >>>>>>>> Dirq DQN not installed or not in PYTHONPATH checking NULL queue >>>>>>>> Dirq NULL not installed or not in PYTHONPATH checking DQS queue >>>>>>>> Dirq DQS not installed or not in PYTHONPATH checking message checksum checking message compression checking message creation ...message creation ok checking message fullchain ...message fullchain ok checking message jsonification ...message jsonification ok checking message serialization ...message serialization ok checking message stringification ...message stringification ok checking message compliance skipping compliance test for 59181ee8a1d930bee8f4a5487d0af37b.1: decoding supported but not installed: snappy skipping compliance test for 59181ee8a1d930bee8f4a5487d0af37b.3: decoding supported but not installed: lz4 ...compliance ok, checked for 37 messages checking message generation ...message generation ok checking base64 string creation checking binary string creation checking integers randomization checking string creation ====================================================================== ERROR: test_rndstr (test.generator_test.MessageTest) test generator.rndstr() ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/messaging-1.1/test/generator_test.py", line 60, in test_rndstr self.assert_(len(string) == index, "size not expected") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'MessageTest' object has no attribute 'assert_' ---------------------------------------------------------------------- Ran 16 tests in 0.473s FAILED (errors=6) Removed many old deprecated unittest features: TestCase method aliases failUnlessEqual, failIfEqual, failUnless, failIf, failUnlessRaises, failUnlessAlmostEqual, failIfAlmostEqual (deprecated in Python 3.1), assertEquals, assertNotEquals, assert_, assertAlmostEquals, assertNotAlmostEquals, assertRegexpMatches, assertRaisesRegexp (deprecated in Python 3.2), and assertNotRegexpMatches (deprecated in Python 3.5). https://bugs.python.org/issue45162 https://docs.python.org/3.11/whatsnew/3.11.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/02910257-python-messaging/ For all our attempts to build python-messaging with Python 3.11, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-messaging/ 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.11: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/ Let us know here if you have any questions. Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11. 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.
Should be fixed by new 1.2 version (see #2020218).
Build failed (https://copr.fedorainfracloud.org/coprs/g/python/python3.11/build/2936597/) but apparently for an unrelated reason: DEBUG util.py:444: ModuleNotFoundError: No module named 'gpgme'
Indeed fixed in 1.2, see https://copr.fedorainfracloud.org/coprs/g/python/python3.11/build/2940182/