Skip to content

Commit

Permalink
Merge pull request #4056 from Lukasa/pytest-httpbin-fix
Browse files Browse the repository at this point in the history
Disable pytest messing with warnings.
  • Loading branch information
Lukasa authored May 24, 2017
2 parents dbb67a1 + f3d310b commit 0371081
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include README.rst LICENSE NOTICE HISTORY.rst requests/cacert.pem
include README.rst LICENSE NOTICE HISTORY.rst pytest.ini requests/cacert.pem
recursive-include tests *.py
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
addopts = -p no:warnings
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def run_tests(self):
requires = []
test_requirements = ['pytest>=2.8.0', 'pytest-httpbin==0.0.7', 'pytest-cov', 'pytest-mock']

with open('requests/__init__.py', 'r') as fd:
with open('requests/__init__.py', 'r', 'utf-8') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)

Expand Down

0 comments on commit 0371081

Please sign in to comment.