From b3a0051a9938d26073828814676762d23922f9c6 Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Tue, 19 Jan 2021 23:23:24 -0800 Subject: [PATCH] Use os.getenv, not os.environ --- pyqtgraph/tests/image_testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')