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
commit48cae778499e13fdba34ed2a00880f7b866dae26 (patch)
treea1e1483bfdb970c2abd04befb9a496418b86cafb /tests/modules
parent345182f70149dee0fa5948397be1973822453165 (diff)
downloadpython-coveragepy-git-48cae778499e13fdba34ed2a00880f7b866dae26.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 03742512..d03a8996 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,
}