Skip to content

Commit

Permalink
Mark tests as xfail. Ref #15.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 20, 2023
1 parent 518c139 commit 3b5324f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
from . import BaseTestCase


issue15 = pytest.mark.xfail('platform.system() == "Windows"')


class TestCase(BaseTestCase):
@pytest.mark.xfail('platform.system() == "Windows"')
@issue15
def test_env_dash_i(self, capfd):
self.runcommandline('env -i FOO=bar env')
assert capfd.readouterr().out == 'FOO=bar\n'

@pytest.mark.xfail('platform.system() == "Windows"')
@issue15
def test_dash_as_dash_i(self, capfd):
self.runcommandline('env - FOO=bar env')
assert capfd.readouterr().out == 'FOO=bar\n'
Expand All @@ -21,6 +24,7 @@ def test_env_simple(self, capfd):
self.runcommandline('env')
assert capfd.readouterr().out

@issue15
def test_command_opts(self, capfd):
# invoke Python's help (not env's help)
cmd = ['env', sys.executable, '--help']
Expand Down

0 comments on commit 3b5324f

Please sign in to comment.