Skip to content

Commit b1bf591

Browse files
committed
Skip test_subparser_aliases on Python 2
1 parent 63095cb commit b1bf591

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_shtab.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44
import logging
55
import subprocess
6+
import sys
67
from argparse import ArgumentParser
78

89
import pytest
@@ -195,6 +196,7 @@ def test_subparser_custom_complete(shell, caplog):
195196

196197

197198
@fix_shell
199+
@pytest.mark.skipif(sys.version_info[0] == 2, reason="requires Python 3.x")
198200
def test_subparser_aliases(shell, caplog):
199201
parser = ArgumentParser(prog="test")
200202
subparsers = parser.add_subparsers()

0 commit comments

Comments
 (0)