diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-03 23:32:19 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-03 23:32:19 -0400 |
| commit | 6831059b1c9047c3f61d1221e6b2cb4f881854d8 (patch) | |
| tree | 3cd76d3ee0a6d214914c0d55fdfd272dfd77ffc5 /test/try_execfile.py | |
| parent | d80e71bfdc847c26368812c21aa2c4c95f64108b (diff) | |
| download | python-coveragepy-6831059b1c9047c3f61d1221e6b2cb4f881854d8.tar.gz | |
Factor execfile out of cmdline, so that we can call python main programs properly: now they get the correct value for __file__.
Diffstat (limited to 'test/try_execfile.py')
| -rw-r--r-- | test/try_execfile.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/try_execfile.py b/test/try_execfile.py new file mode 100644 index 0000000..523823e --- /dev/null +++ b/test/try_execfile.py @@ -0,0 +1,5 @@ +globals_to_check = { + '__name__': __name__, + '__file__': __file__, +} +print repr(globals_to_check) |
