diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-03 08:54:27 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-03 08:54:27 -0500 |
| commit | 5f7375fb90aaf728ebf6c9da9a61b5302dcbd71b (patch) | |
| tree | 60f4c9265e686d2685c1a10d4a4acdff04ef7f79 /test/test_execfile.py | |
| parent | e0b2014fad18f284256c94422d940ceb84e8be24 (diff) | |
| parent | 99a3e92e89c3e9d4a0dd73ae71b0b849d7fddbee (diff) | |
| download | python-coveragepy-5f7375fb90aaf728ebf6c9da9a61b5302dcbd71b.tar.gz | |
Merged default onto config.
Diffstat (limited to 'test/test_execfile.py')
| -rw-r--r-- | test/test_execfile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_execfile.py b/test/test_execfile.py index 5e9f4fd..8c5e9a1 100644 --- a/test/test_execfile.py +++ b/test/test_execfile.py @@ -17,7 +17,7 @@ class RunTest(CoverageTest): tryfile = os.path.join(here, "try_execfile.py") run_python_file(tryfile, [tryfile, "arg1", "arg2"]) mod_globs = eval(self.stdout()) - + # The file should think it is __main__ self.assertEqual(mod_globs['__name__'], "__main__") @@ -30,10 +30,10 @@ class RunTest(CoverageTest): "Test file for run_python_file.") self.assertEqual(mod_globs['DATA'], "xyzzy") self.assertEqual(mod_globs['FN_VAL'], "my_fn('fooey')") - + # It must be self-importable as __main__. self.assertEqual(mod_globs['__main__.DATA'], "xyzzy") - + # Argv should have the proper values. self.assertEqual(mod_globs['argv'], [tryfile, "arg1", "arg2"]) |
