Merge pull request #4056 from Lukasa/pytest-httpbin-fix

Disable pytest messing with warnings.
This commit is contained in:
Cory Benfield
2017-05-24 10:46:11 -07:00
committed by GitHub
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -0,0 +1,2 @@
[pytest]
addopts = -p no:warnings
+1 -1
View File
@@ -51,7 +51,7 @@ packages = [
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)