Skip to content

Commit

Permalink
Skip test_subparser_aliases on Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jimporter committed Aug 24, 2021
1 parent 63095cb commit b1bf591
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_shtab.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""
import logging
import subprocess
import sys
from argparse import ArgumentParser

import pytest
Expand Down Expand Up @@ -195,6 +196,7 @@ def test_subparser_custom_complete(shell, caplog):


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

0 comments on commit b1bf591

Please sign in to comment.