Skip to content

Commit

Permalink
Merge pull request #96 from kevin1024/read-version-normally
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored Sep 18, 2024
2 parents 5cee134 + 74c1d8d commit ca7b801
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pytest_httpbin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@

import pytest

here = os.path.dirname(__file__)
version_file = os.path.join(here, "version.py")

with open(version_file) as f:
code = compile(f.read(), version_file, "exec")
exec(code)
from .version import __version__

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

0 comments on commit ca7b801

Please sign in to comment.