summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorpab <devnull@localhost>2009-08-18 22:29:59 +0000
committerpab <devnull@localhost>2009-08-18 22:29:59 +0000
commitd6487ddc9c3046e23465b63d7e4333d91fa7326e (patch)
tree94d48f5f719e3758001c17c64284722b2a57c675 /setup.py
parent1bde7bd675420f45efde66c41e937d8667f7a174 (diff)
Ensure similar behavior under setup invocation and individual invocation
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index b6401ed..a0fbe99 100755
--- a/setup.py
+++ b/setup.py
@@ -97,8 +97,9 @@ class test (Command):
g['__name__'] = test_name
sys.modules[test_name] = module
- # Import the test into the module
+ # Import the test into the module, making sure the created globals look like they're in the module.
eval(rv, g)
+ module.__dict__.update(g)
# Find all subclasses of unittest.TestCase that were
# in the test source and add them to the suite.