Commit e3ce4c50 authored by Jason R. Coombs's avatar Jason R. Coombs

Capture expected warning

parent 898c252e
import sys import sys
import pytest
from mock import patch from mock import patch
from setuptools import pep425tags from setuptools import pep425tags
...@@ -64,7 +65,8 @@ class TestPEP425Tags: ...@@ -64,7 +65,8 @@ class TestPEP425Tags:
with patch('setuptools.pep425tags.sysconfig.get_config_var', with patch('setuptools.pep425tags.sysconfig.get_config_var',
raises_ioerror): raises_ioerror):
assert len(pep425tags.get_supported()) with pytest.warns(RuntimeWarning):
assert len(pep425tags.get_supported())
def test_no_hyphen_tag(self): def test_no_hyphen_tag(self):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment