summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
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.