← Back to team overview

testtools-dev team mailing list archive

Re: [Merge] lp:~gz/testtools/raises_regressions_675327 into lp:testtools

 

Although it shouldn't block this landing (sorry it's taken so long btw), I'll note that this branch does not make testtools trunk work with Python 3.

e.g.

PYTHONPATH=/home/jml/src/testtools python3 -m testtools.run testtools.tests.test_suite
Traceback (most recent call last):
  File "/usr/lib/python3.1/runpy.py", line 128, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python3.1/runpy.py", line 34, in _run_code
    exec(code, run_globals)
  File "/home/jml/src/testtools/testtools/run.py", line 330, in <module>
    main(sys.argv, sys.stdout)
  File "/home/jml/src/testtools/testtools/run.py", line 327, in main
    program = TestProgram(argv=argv, testRunner=runner, stdout=stdout)
  File "/home/jml/src/testtools/testtools/run.py", line 153, in __init__
    self.parseArgs(argv)
  File "/home/jml/src/testtools/testtools/run.py", line 230, in parseArgs
    self.createTests()
  File "/home/jml/src/testtools/testtools/run.py", line 239, in createTests
    self.module)
  File "/usr/lib/python3.1/unittest.py", line 1308, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.1/unittest.py", line 1308, in <listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.1/unittest.py", line 1293, in loadTestsFromName
    test = obj()
  File "testtools/tests/__init__.py", line 9, in test_suite
    from testtools.tests import (
  File "testtools/tests/test_run.py", line 5, in <module>
    import StringIO
ImportError: No module named StringIO

-- 
https://code.launchpad.net/~gz/testtools/raises_regressions_675327/+merge/41342
Your team testtools developers is requested to review the proposed merge of lp:~gz/testtools/raises_regressions_675327 into lp:testtools.



References