Test failure with Python 3.3

Bug #1055720 reported by Arfrever Frehtes Taifersar Arahesis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zope.testing
Invalid
Undecided
Unassigned

Bug Description

1 test fails with Python 3.3 due to improved exception messages.
(Test results from zope.testing trunk.)

$ PYTHONPATH="build/lib" python3.3 setup.py test
running test
running build_py
running egg_info
writing top-level names to src/zope.testing.egg-info/top_level.txt
writing namespace_packages to src/zope.testing.egg-info/namespace_packages.txt
writing requirements to src/zope.testing.egg-info/requires.txt
writing dependency_links to src/zope.testing.egg-info/dependency_links.txt
writing src/zope.testing.egg-info/PKG-INFO
unrecognized .svn/entries format in
reading manifest file 'src/zope.testing.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.test' under directory 'src'
warning: no files found matching 'sampletests' under directory 'src'
writing manifest file 'src/zope.testing.egg-info/SOURCES.txt'
running egg_info
writing top-level names to /tmp/zope.testing/build/lib/zope.testing.egg-info/top_level.txt
writing namespace_packages to /tmp/zope.testing/build/lib/zope.testing.egg-info/namespace_packages.txt
writing requirements to /tmp/zope.testing/build/lib/zope.testing.egg-info/requires.txt
writing dependency_links to /tmp/zope.testing/build/lib/zope.testing.egg-info/dependency_links.txt
writing /tmp/zope.testing/build/lib/zope.testing.egg-info/PKG-INFO
unrecognized .svn/entries format in
reading manifest file '/tmp/zope.testing/build/lib/zope.testing.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.test' under directory 'src'
warning: no files found matching 'sampletests' under directory 'src'
writing manifest file '/tmp/zope.testing/build/lib/zope.testing.egg-info/SOURCES.txt'
running build_ext
/tmp/zope.testing/build/lib/zope/testing/module.txt
Doctest: module.txt ... FAIL
/tmp/zope.testing/build/lib/zope/testing/loggingsupport.txt
Doctest: loggingsupport.txt ... ok
/tmp/zope.testing/build/lib/zope/testing/renormalizing.txt
Doctest: renormalizing.txt ... ok
/tmp/zope.testing/build/lib/zope/testing/setupstack.txt
Doctest: setupstack.txt ... /tmp/zope.testing/build/lib/zope/testing/setupstack.txt:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='Data.fs' mode='w' encoding='UTF-8'>
  Stack-based test setUp and tearDown
ok
/tmp/zope.testing/build/lib/zope/testing/wait.txt
Doctest: wait.txt ... ok

======================================================================
FAIL: /tmp/zope.testing/build/lib/zope/testing/module.txt
Doctest: module.txt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/zope.testing/build/lib/zope/testing/doctest/__init__.py", line 247, in _patched_runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for module.txt
  File "/tmp/zope.testing/build/lib/zope/testing/module.txt", line 0

----------------------------------------------------------------------
File "/tmp/zope.testing/build/lib/zope/testing/module.txt", line 72, 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/lib64/python3.3/doctest.py", line 1287, in __run
        compileflags, 1), test.globs)
      File "<doctest module.txt[17]>", line 1, in <module>
        import fake
    ImportError: No module named 'fake'
----------------------------------------------------------------------
File "/tmp/zope.testing/build/lib/zope/testing/module.txt", line 89, 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/lib64/python3.3/doctest.py", line 1287, in __run
        compileflags, 1), test.globs)
      File "<doctest module.txt[25]>", line 1, in <module>
        import zope.testing.unlikelymodulename
    ImportError: No module named 'zope.testing.unlikelymodulename'

----------------------------------------------------------------------
Ran 5 tests in 0.198s

FAILED (failures=1)

Revision history for this message
Brian Sutherland (jinty) wrote :

fixed in r127901 to be released in 4.1.2 or above

Changed in zope.testing:
status: New → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope.testing project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope.testing.

Changed in zope.testing:
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.