Opened 9 years ago
Closed 9 years ago
#250 closed defect (fixed)
test failure: test_copyable.Copyable.testFailure1
Reported by: | Brian Warner | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 0.11.0 |
Component: | unknown | Version: | 0.9.1 |
Keywords: | Cc: |
Description
I get this locally (under tox, on OS-X), and I think dawuud is getting it too.
=============================================================================== [FAIL] Traceback (most recent call last): File "/Users/warner/stuff/python/foolscap/foolscap/test/test_copyable.py", line 135, in _testFailure1_1 File "/Users/warner/stuff/python/foolscap/.tox/py27/lib/python2.7/site-packages/twisted/trial/_synctest.py", line 400, in assertTrue super(_Assertions, self).assertTrue(condition, msg) File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 422, in assertTrue raise self.failureException(msg) twisted.trial.unittest.FailTest: no 'raise RuntimeError' in 'Traceback (most recent call last): File "/Users/warner/stuff/python/foolscap/.tox/py27/lib/python2.7/site-packages/twisted/trial/_asynctest.py", line 141, in deferTestMethod d = self._run(self._testMethodName, result) File "/Users/warner/stuff/python/foolscap/.tox/py27/lib/python2.7/site-packages/twisted/trial/_asynctest.py", line 112, in _run utils.runWithWarningsSuppressed, self._getSuppress(), method) File "/Users/warner/stuff/python/foolscap/.tox/py27/lib/python2.7/site-packages/twisted/internet/defer.py", line 150, in maybeDeferred result = f(*args, **kw) File "/Users/warner/stuff/python/foolscap/.tox/py27/lib/python2.7/site-packages/twisted/internet/utils.py", line 197, in runWithWarningsSuppressed result = f(*a, **kw) --- <exception caught here> --- File "/Users/warner/stuff/python/foolscap/foolscap/test/test_copyable.py", line 118, in testFailure1 exceptions.RuntimeError: message here ' foolscap.test.test_copyable.Copyable.testFailure1 -------------------------------------------------------------------------------
Change History (2)
comment:1 Changed 9 years ago by
comment:2 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Oh, so, I moved foolscap/
to src/foolscap/
, but the old .pyc
files were still sitting around in my source tree. Trial (and tox) tried to run those instead of the ones that were installed into the virtualenv. When I got rid of the old foolscap/
directory, this failure (and #251) went away.
The test in question wanted to produce a traceback, and I think the lack of a source file (test_copyable.pyc
was present, but no test_copyable.py
) meant it couldn't.
Closing this one. For anyone else who has upgraded a git checkout of the foolscap source code, please rm -rf foolscap
before re-running tests.
Neither the buildbot nor travis is showing this one.