aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-09-23 10:32:55 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-09-23 10:32:55 -0400
commite3ce4c508fe2b0c56c6bd22ee0eb15fb3a7fb279 (patch)
tree9c3f81e553fb50c41ce3fe8f07bf0b7b6513a852 /setuptools
parent898c252e4c1d0521a106fb608993aef099dca16e (diff)
downloadexternal_python_setuptools-e3ce4c508fe2b0c56c6bd22ee0eb15fb3a7fb279.tar.gz
external_python_setuptools-e3ce4c508fe2b0c56c6bd22ee0eb15fb3a7fb279.tar.bz2
external_python_setuptools-e3ce4c508fe2b0c56c6bd22ee0eb15fb3a7fb279.zip
Capture expected warning
Diffstat (limited to 'setuptools')
-rw-r--r--setuptools/tests/test_pep425tags.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/tests/test_pep425tags.py b/setuptools/tests/test_pep425tags.py
index 658784ac..f558a0d8 100644
--- a/setuptools/tests/test_pep425tags.py
+++ b/setuptools/tests/test_pep425tags.py
@@ -1,5 +1,6 @@
import sys
+import pytest
from mock import patch
from setuptools import pep425tags
@@ -64,7 +65,8 @@ class TestPEP425Tags:
with patch('setuptools.pep425tags.sysconfig.get_config_var',
raises_ioerror):
- assert len(pep425tags.get_supported())
+ with pytest.warns(RuntimeWarning):
+ assert len(pep425tags.get_supported())
def test_no_hyphen_tag(self):
"""