There was an error while loading. Please reload this page.
1 parent 5cee134 commit 74c1d8dCopy full SHA for 74c1d8d
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