[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2931: allmydata/__init__.py has surprising side-effects
Tahoe-LAFS
trac at tahoe-lafs.org
Mon Jun 18 14:41:50 UTC 2018
#2931: allmydata/__init__.py has surprising side-effects
---------------------+---------------------------
Reporter: exarkun | Owner:
Type: defect | Status: new
Priority: normal | Milestone: undecided
Component: unknown | Version: 1.12.1
Keywords: | Launchpad Bug:
---------------------+---------------------------
I can't explain what's going on yet but I'm fairly sure that whatever it
is, it is bad and should be fixed:
{{{
$ python -c 'from twisted.trial._dist.workerreporter import *'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "local/lib/python2.7/site-
packages/twisted/trial/_dist/workerreporter.py", line 15, in <module>
from twisted.trial.reporter import TestResult
File "local/lib/python2.7/site-packages/twisted/trial/reporter.py", line
29, in <module>
from twisted.trial.unittest import makeTodo
File "local/lib/python2.7/site-packages/twisted/trial/unittest.py", line
16, in <module>
from twisted.trial._asyncrunner import (
File "local/lib/python2.7/site-packages/twisted/trial/_asyncrunner.py",
line 16, in <module>
from twisted.trial import itrial, reporter
ImportError: cannot import name reporter
$ python -c 'import allmydata; from twisted.trial._dist.workerreporter
import *'
$
}}}
Supposition: An import of `allmydata` should have no observable
consequences for a subsequent import of any `twisted` module (or,
arguably, any module outside of `allmydata`).
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2931>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list