diff options
author | pab <devnull@localhost> | 2009-08-18 22:29:59 +0000 |
---|---|---|
committer | pab <devnull@localhost> | 2009-08-18 22:29:59 +0000 |
commit | d6487ddc9c3046e23465b63d7e4333d91fa7326e (patch) | |
tree | 94d48f5f719e3758001c17c64284722b2a57c675 /setup.py | |
parent | 1bde7bd675420f45efde66c41e937d8667f7a174 (diff) |
Ensure similar behavior under setup invocation and individual invocation
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |