diff --git a/Makefile b/Makefile index 80f18ba..57ca21e 100644 --- a/Makefile +++ b/Makefile @@ -37,4 +37,4 @@ pkgbuild: .PHONY: tests tests: python tools/generate_tracks.py - EMMENTAL_TESTING=1 python -m unittest discover -v + python -m unittest discover -v diff --git a/lib/version.py b/lib/version.py index 4b475e7..0edd1b3 100644 --- a/lib/version.py +++ b/lib/version.py @@ -1,5 +1,6 @@ # Copyright 2021 (c) Anna Schumaker. import os +import sys MAJOR = 2 MINOR = 9 @@ -10,7 +11,7 @@ if os.path.exists(".debug"): if f.read().strip() == "emmental": DEBUG = True -TESTING = os.environ.get("EMMENTAL_TESTING") != None +TESTING = "unittest" in sys.modules def string():