Commit 448cfc53 authored by Jason R. Coombs's avatar Jason R. Coombs

Replace silent test acceptance with a proper skip check

parent bc7f3b0a
......@@ -51,18 +51,9 @@ def test_env(tmpdir, temp_user):
class TestDevelopTest:
def setup_method(self, method):
if hasattr(sys, 'real_prefix'):
return
def teardown_method(self, method):
if hasattr(sys, 'real_prefix') or (hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix):
return
@pytest.mark.skipif(hasattr(sys, 'real_prefix'),
reason="Cannot run when invoked in a virtualenv")
def test_develop(self, test_env):
if hasattr(sys, 'real_prefix'):
return
dist = Distribution(
dict(name='foo',
packages=['foo'],
......
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