[Debian-astro-maintainers] Bug#999368: pyephem ftbfs with Python 3.10 (test failures)

Matthias Klose doko at debian.org
Wed Nov 10 15:00:07 GMT 2021


Source: pyephem
Version: 4.1-1
Severity: important
Tags: ftbfs
User: debian-python at lists.debian.org
Usertags: python3.10

pyephem ftbfs with python3-defaults from experimental:

======================================================================
ERROR: test_constellation (ephem.tests.test_bodies.FunctionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_ephem/build/ephem/tests/test_bodies.py",
line 317, in test_constellation
    self.assertEqual(constellation(oneb), ('Ori', 'Orion'))
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

======================================================================
FAIL:
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_ephem/build/ephem/tests/../doc/quick.rst
Doctest: quick.rst
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.10/doctest.py", line 2216, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for quick.rst
  File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_ephem/build/ephem/tests/../doc/quick.rst",
line 0

----------------------------------------------------------------------
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_ephem/build/ephem/tests/../doc/quick.rst",
line 28, in quick.rst
Failed example:
    print(ephem.constellation(m))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.10/doctest.py", line 1348, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest quick.rst[2]>", line 1, in <module>
        print(ephem.constellation(m))
    SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
----------------------------------------------------------------------
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_ephem/build/ephem/tests/../doc/quick.rst",
line 38, in quick.rst
Failed example:
    print(constellation(m))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.10/doctest.py", line 1348, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest quick.rst[5]>", line 1, in <module>
        print(constellation(m))
    SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
----------------------------------------------------------------------
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_ephem/build/ephem/tests/../doc/quick.rst",
line 335, in quick.rst
Failed example:
    print(ephem.constellation(m))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.10/doctest.py", line 1348, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest quick.rst[36]>", line 1, in <module>
        print(ephem.constellation(m))
    SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats


======================================================================
FAIL:
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_ephem/build/ephem/tests/../doc/tutorial.rst
Doctest: tutorial.rst
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.10/doctest.py", line 2216, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for tutorial.rst
  File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_ephem/build/ephem/tests/../doc/tutorial.rst",
line 0

----------------------------------------------------------------------
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_ephem/build/ephem/tests/../doc/tutorial.rst",
line 48, in tutorial.rst
Failed example:
    print(ephem.constellation(u))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.10/doctest.py", line 1348, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest tutorial.rst[4]>", line 1, in <module>
        print(ephem.constellation(u))
    SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
----------------------------------------------------------------------
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_ephem/build/ephem/tests/../doc/tutorial.rst",
line 485, in tutorial.rst
Failed example:
    print("%s %s" % (ephem.constellation(yh), yh.mag))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.10/doctest.py", line 1348, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest tutorial.rst[71]>", line 1, in <module>
        print("%s %s" % (ephem.constellation(yh), yh.mag))
    SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats


----------------------------------------------------------------------
Ran 162 tests in 2.658s

FAILED (failures=2, errors=1, skipped=2)



More information about the Debian-astro-maintainers mailing list