diff --git a/pyqtgraph/tests/image_testing.py b/pyqtgraph/tests/image_testing.py index ee364791..7cb993f9 100644 --- a/pyqtgraph/tests/image_testing.py +++ b/pyqtgraph/tests/image_testing.py @@ -469,7 +469,7 @@ def getTestDataRepo(): """ global testDataTag - if os.environ["CI"]: + if os.getenv("CI"): dataPath = os.path.join(os.environ["GITHUB_WORKSPACE"], '.pyqtgraph', 'test-data') else: dataPath = os.path.join(os.path.expanduser('~'), '.pyqtgraph', 'test-data')