derwiki-adroll / mock

Automatically exported from code.google.com/p/mock
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Error running jython tests #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a clean clone of mock, using the jython interpreter created by tox:

$ .tox/jython/bin/unit2 discover

Traceback (most recent call last):
  File ".tox/jython/bin/unit2", line 8, in <module>
    sys.exit(
  File "/Users/offline/projects/mock/.tox/jython/Lib/site-packages/unittest2/main.py", line 240, in main_
    main(module=None)
  File "/Users/offline/projects/mock/.tox/jython/Lib/site-packages/unittest2/main.py", line 97, in __init__
    self.parseArgs(argv)
  File "/Users/offline/projects/mock/.tox/jython/Lib/site-packages/unittest2/main.py", line 116, in parseArgs
    self._do_discovery(argv[2:])
  File "/Users/offline/projects/mock/.tox/jython/Lib/site-packages/unittest2/main.py", line 214, in _do_discovery
    self.test = loader.discover(start_dir, pattern, top_level_dir)
  File "/Users/offline/projects/mock/.tox/jython/Lib/site-packages/unittest2/loader.py", line 224, in discover
    tests = list(self._find_tests(start_dir, pattern))
  File "/Users/offline/projects/mock/.tox/jython/Lib/site-packages/unittest2/loader.py", line 293, in _find_tests
    for test in self._find_tests(full_path, pattern):
  File "/Users/offline/projects/mock/.tox/jython/Lib/site-packages/unittest2/loader.py", line 273, in _find_tests
    raise ImportError(msg % (mod_name, module_dir, expected_dir))
ImportError: 'testmagicmethods' module incorrectly imported from 
'/Users/offline/projects/mock/tests'. Expected 
'/Users/offline/projects/mock/tests'. Is this module globally installed?

Original issue reported on code.google.com by off...@offby1.net on 8 Apr 2011 at 5:26

GoogleCodeExporter commented 9 years ago
This is due to a bug in unittest2 that will be fixed in the next release.

Original comment by fuzzyman on 8 Apr 2011 at 9:13

GoogleCodeExporter commented 9 years ago
Is there a way to get this next release? I'd like to have these tests passing.

Original comment by off...@offby1.net on 8 Apr 2011 at 5:14

GoogleCodeExporter commented 9 years ago
Not yet as the bugfix is not in unittest2 yet. Deleting all the jython $class 
files between test runs *should* work.

Original comment by fuzzyman on 8 Apr 2011 at 5:50