We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5cee134 + 74c1d8d commit ca7b801Copy full SHA for ca7b801
pytest_httpbin/__init__.py
@@ -2,12 +2,7 @@
2
3
import pytest
4
5
-here = os.path.dirname(__file__)
6
-version_file = os.path.join(here, "version.py")
7
-
8
-with open(version_file) as f:
9
- code = compile(f.read(), version_file, "exec")
10
- exec(code)
+from .version import __version__
11
12
use_class_based_httpbin = pytest.mark.usefixtures("class_based_httpbin")
13
use_class_based_httpbin_secure = pytest.mark.usefixtures("class_based_httpbin_secure")
0 commit comments