Source: openstructure
Version: 2.5.0-1
Severity: important
Tags: ftbfs patch
User: debian-pyt...@lists.debian.org
Usertags: python3.12

Hi Maintainer

openstructure FTBFS with Python 3.12 as the default version (i.e. with
python3-defaults/3.12.1-1 from experimental).  I've copied what I hope
is the relevant part of the log below.

Python 3.12 now returns 5 instead of 0 when all tests in a unit test
are skipped.  This is the case for test_sec_struct.py when
debian/patches/skip-dssp-tests.patch is applied.

I was able to work around this by adding a dummy test:

--- a/modules/mol/alg/tests/test_sec_struct.py
+++ b/modules/mol/alg/tests/test_sec_struct.py
@@ -6,6 +6,9 @@

 class TestSecStruct(unittest.TestCase):

+  def testDummy(self):
+    return
+
   @unittest.skip("Incompatible with dssp >= 4")
   def testSecStruct(self):

Regards
Graham


With Python 3.11:

[100%] running checks test_sec_struct.py
cd /<<PKGBUILDDIR>>/modules/mol/alg/tests && sh -c
"PYTHONPATH=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/stage/lib/python3.11/dist-packages/
 /usr/bin/python3
/<<PKGBUILDDIR>>/modules/mol/alg/tests/test_sec_struct.py"
Compound library not available. Some functionality may not work as expected.
s
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK (skipped=1)


With Python 3.12:

[ 94%] running checks test_sec_struct.py
cd /<<PKGBUILDDIR>>/modules/mol/alg/tests && sh -c
"PYTHONPATH=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/stage/lib/python3.12/dist-packages/
 /usr/bin/python3
/<<PKGBUILDDIR>>/modules/mol/alg/tests/test_sec_struct.py"
Compound library not available. Some functionality may not work as expected.
s
----------------------------------------------------------------------
Ran 0 tests in 0.000s

NO TESTS RAN (skipped=1)

Reply via email to