summaryrefslogtreecommitdiff
path: root/test/try_execfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/try_execfile.py')
-rw-r--r--test/try_execfile.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/test/try_execfile.py b/test/try_execfile.py
deleted file mode 100644
index 9bbabd1a..00000000
--- a/test/try_execfile.py
+++ /dev/null
@@ -1,34 +0,0 @@
-"""Test file for run_python_file."""
-
-import os, pprint, sys
-
-DATA = "xyzzy"
-
-import __main__
-
-def my_function(a):
- """A function to force execution of module-level values."""
- return "my_fn(%r)" % a
-
-FN_VAL = my_function("fooey")
-
-try:
- pkg = __package__
-except NameError:
- pkg = "*No __package__*"
-
-globals_to_check = {
- '__name__': __name__,
- '__file__': __file__,
- '__doc__': __doc__,
- '__builtins__.has_open': hasattr(__builtins__, 'open'),
- '__builtins__.dir': dir(__builtins__),
- '__package__': pkg,
- 'DATA': DATA,
- 'FN_VAL': FN_VAL,
- '__main__.DATA': getattr(__main__, "DATA", "nothing"),
- 'argv': sys.argv,
- 'path': [os.path.normcase(p) for p in sys.path],
-}
-
-pprint.pprint(globals_to_check)