1
0
forked from VimPlug/jedi

Use Python 3.7 for calculating test coverage

This commit is contained in:
Dave Halter
2020-01-01 23:24:10 +01:00
parent a36d609756
commit 9824929ad1
2 changed files with 7 additions and 6 deletions

View File

@@ -206,7 +206,8 @@ class IntegrationTestCase(BaseTestCase):
TEST_GOTO: self.run_goto,
TEST_REFERENCES: self.run_find_references,
}
if self.path.endswith('pytest.py') and environment.executable != sys.executable:
if self.path.endswith('pytest.py') \
and environment.executable != os.path.realpath(sys.executable):
# It's not guarantueed that pytest is installed in test
# environments, if we're not running in the same environment that
# we're already in, so just skip that case.