summaryrefslogtreecommitdiff
path: root/tests/modules
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-19 05:54:06 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-19 05:54:06 -0500
commit8f1abf668d9a8a457b8e9f9b54e38787742a756a (patch)
tree03dac9714391d5b6f02356a9a52ca9cc782468da /tests/modules
parentc498e7720143ed6d93c004f956fff5c6f9a053a1 (diff)
downloadpython-coveragepy-8f1abf668d9a8a457b8e9f9b54e38787742a756a.tar.gz
Move the jython conditional for try_execfile.py
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/process_test/try_execfile.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/modules/process_test/try_execfile.py b/tests/modules/process_test/try_execfile.py
index 0374251..d03a899 100644
--- a/tests/modules/process_test/try_execfile.py
+++ b/tests/modules/process_test/try_execfile.py
@@ -50,8 +50,6 @@ def without_same_files(filenames):
reduced.append(filename)
return reduced
-skips = os.getenv('COVERAGE_TRY_EXECFILE_SKIPS', '').split()
-
cleaned_sys_path = [os.path.normcase(p) for p in without_same_files(sys.path)]
DATA = "xyzzy"
@@ -67,10 +65,6 @@ FN_VAL = my_function("fooey")
loader = globals().get('__loader__')
fullname = getattr(loader, 'fullname', None) or getattr(loader, 'name', None)
-argv = sys.argv
-if 'argv0' in skips:
- argv[0] = '*skipped*'
-
globals_to_check = {
'__name__': __name__,
'__file__': __file__,
@@ -83,7 +77,8 @@ globals_to_check = {
'DATA': DATA,
'FN_VAL': FN_VAL,
'__main__.DATA': getattr(__main__, "DATA", "nothing"),
- 'argv': argv,
+ 'argv0': sys.argv[0],
+ 'argv1-n': sys.argv[1:],
'path': cleaned_sys_path,
}