Skip to content

Commit ca7b801

Browse files
authored
Merge pull request #96 from kevin1024/read-version-normally
2 parents 5cee134 + 74c1d8d commit ca7b801

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pytest_httpbin/__init__.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
import pytest
44

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)
5+
from .version import __version__
116

127
use_class_based_httpbin = pytest.mark.usefixtures("class_based_httpbin")
138
use_class_based_httpbin_secure = pytest.mark.usefixtures("class_based_httpbin_secure")

0 commit comments

Comments
 (0)