diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-03-24 13:05:20 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-03-24 13:05:20 -0400 |
commit | 820b255f34a0aac8670b0c819153bb8b38c4b2c6 (patch) | |
tree | 61cc57a000b6d73d20f7ecadec76a9fb79b04206 /coverage/execfile.py | |
parent | ce55ad5567d461cebf7bd73d9662c6ac36696106 (diff) | |
download | python-coveragepy-git-820b255f34a0aac8670b0c819153bb8b38c4b2c6.tar.gz |
Move more PYVERSION to be PYBEHAVIOR
Diffstat (limited to 'coverage/execfile.py')
-rw-r--r-- | coverage/execfile.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/coverage/execfile.py b/coverage/execfile.py index 0e78e5dc..97997b06 100644 --- a/coverage/execfile.py +++ b/coverage/execfile.py @@ -124,11 +124,7 @@ class PyRunner(object): should_update_sys_path = True if self.as_module: - # Python 3.7.0b3 changed the behavior of the sys.path[0] entry for -m. It - # used to be an empty string (meaning the current directory). It changed - # to be the actual path to the current directory, so that os.chdir wouldn't - # affect the outcome. - if env.PYVERSION >= (3, 7, 0, 'beta', 3): + if env.PYBEHAVIOR.actual_syspath0_dash_m: path0 = os.getcwd() else: path0 = "" |