Skip to content

Commit 7486bae

Browse files
committed
Skip a couple tests on macOS which were problematic on my computer
1 parent 3e0e3b1 commit 7486bae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_bashcompletion.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
skip = skip_reason1 or skip_reason2 or skip_reason3
3434

35+
skip_mac = sys.platform.startswith('dar')
36+
3537

3638
actors = ['Mark Hamill', 'Harrison Ford', 'Carrie Fisher', 'Alec Guinness', 'Peter Mayhew',
3739
'Anthony Daniels', 'Adam Driver', 'Daisy Ridley', 'John Boyega', 'Oscar Isaac',
@@ -133,7 +135,7 @@ def test_invalid_ifs(parser1, mock):
133135

134136

135137
# noinspection PyShadowingNames
136-
@pytest.mark.skipif(skip, reason=skip_reason)
138+
@pytest.mark.skipif(skip or skip_mac, reason=skip_reason)
137139
@pytest.mark.parametrize('comp_line, exp_out, exp_err', [
138140
('media ', 'movies\013shows', ''),
139141
('media mo', 'movies', ''),
@@ -202,7 +204,7 @@ def fdopen_fail_9(fd, mode, *args):
202204

203205

204206
# noinspection PyShadowingNames
205-
@pytest.mark.skipif(skip, reason=skip_reason)
207+
@pytest.mark.skipif(skip or skip_mac, reason=skip_reason)
206208
def test_fail_alt_stderr(parser1, capfd, mock):
207209
completer = CompletionFinder()
208210

0 commit comments

Comments
 (0)