Bug#867777: zope.testing FTBFS with python 3.6 as supported version

Adrian Bunk bunk at debian.org
Sun Jul 9 11:03:42 UTC 2017


Source: zope.testing
Version: 4.6.0-1
Severity: serious
Tags: buster sid fixed-upstream

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/zope.testing.html

...
I: pybuild base:184: python3.6 setup.py test 
running test
running egg_info
writing src/zope.testing.egg-info/PKG-INFO
writing dependency_links to src/zope.testing.egg-info/dependency_links.txt
writing namespace_packages to src/zope.testing.egg-info/namespace_packages.txt
writing requirements to src/zope.testing.egg-info/requires.txt
writing top-level names to src/zope.testing.egg-info/top_level.txt
reading manifest file 'src/zope.testing.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'appveyor.yml'
writing manifest file 'src/zope.testing.egg-info/SOURCES.txt'
running build_ext
/build/1st/zope.testing-4.6.0/src/zope/testing/module.txt
Doctest: module.txt ... FAIL
/build/1st/zope.testing-4.6.0/src/zope/testing/loggingsupport.txt
Doctest: loggingsupport.txt ... ok
/build/1st/zope.testing-4.6.0/src/zope/testing/renormalizing.txt
Doctest: renormalizing.txt ... ok
/build/1st/zope.testing-4.6.0/src/zope/testing/setupstack.txt
Doctest: setupstack.txt ... ok
/build/1st/zope.testing-4.6.0/src/zope/testing/wait.txt
Doctest: wait.txt ... ok
/build/1st/zope.testing-4.6.0/src/zope/testing/doctestcase.txt
Doctest: doctestcase.txt ... /build/1st/zope.testing-4.6.0/src/zope/testing/doctestcase.py:182: DeprecationWarning: invalid escape sequence \W
  _not_word = re.compile('\W')
ok
test_input_empty (zope.testing.test_renormalizing.Exception2To3) ... ok
test_input_spaces (zope.testing.test_renormalizing.Exception2To3) ... ok
test_last_line_empty (zope.testing.test_renormalizing.Exception2To3) ... ok
test_no_colon_in_first_word (zope.testing.test_renormalizing.Exception2To3) ... ok
test_no_dots_in_name (zope.testing.test_renormalizing.Exception2To3) ... ok
test_strip_dottedname (zope.testing.test_renormalizing.Exception2To3) ... ok

======================================================================
FAIL: /build/1st/zope.testing-4.6.0/src/zope/testing/module.txt
Doctest: module.txt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.6/doctest.py", line 2199, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for module.txt
  File "/build/1st/zope.testing-4.6.0/src/zope/testing/module.txt", line 0

----------------------------------------------------------------------
File "/build/1st/zope.testing-4.6.0/src/zope/testing/module.txt", line 80, in module.txt
Failed example:
    import fake
Expected:
    Traceback (most recent call last):
      ...
    ImportError: No module named fake
Got:
    Traceback (most recent call last):
      File "/usr/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest module.txt[20]>", line 1, in <module>
        import fake
    ModuleNotFoundError: No module named fake
----------------------------------------------------------------------
File "/build/1st/zope.testing-4.6.0/src/zope/testing/module.txt", line 97, in module.txt
Failed example:
    import zope.testing.unlikelymodulename
Expected:
    Traceback (most recent call last):
      ...
    ImportError: No module named unlikelymodulename
Got:
    Traceback (most recent call last):
      File "/usr/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest module.txt[28]>", line 1, in <module>
        import zope.testing.unlikelymodulename
    ModuleNotFoundError: No module named unlikelymodulename


----------------------------------------------------------------------
Ran 12 tests in 0.200s

FAILED (failures=1)
Test failed: <unittest.runner.TextTestResult run=12 errors=0 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=12 errors=0 failures=1>
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: python3.6 setup.py test 
dh_auto_test: pybuild --test -i python{version} -p 3.6 3.5 returned exit code 13
debian/rules:8: recipe for target 'build' failed
make: *** [build] Error 25


Upstream version 4.6.1 adds support for Python 3.6



More information about the pkg-zope-developers mailing list