Skip to content

Commit

Permalink
Change the tests, to skip for 3.10 because of python/cpython#53903
Browse files Browse the repository at this point in the history
  • Loading branch information
y0urself committed Jun 14, 2022
1 parent 9e15e2f commit 1e4967b
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,22 +441,26 @@ def assert_snapshot(self, name, output):
raise

def test_root_help(self):
help_output = self.parser._parser.format_help()
self.assert_snapshot('root_help', help_output)
if not self.python_version == "3.10":
help_output = self.parser._parser.format_help()
self.assert_snapshot('root_help', help_output)

def test_socket_help(self):
help_output = self.parser._parser_socket.format_help()
self.assert_snapshot('socket_help', help_output)
if not self.python_version == "3.10":
help_output = self.parser._parser_socket.format_help()
self.assert_snapshot('socket_help', help_output)

def test_ssh_help(self):
self.parser._set_defaults(None)
help_output = self.parser._parser_ssh.format_help()
self.assert_snapshot('ssh_help', help_output)
if not self.python_version == "3.10":
self.parser._set_defaults(None)
help_output = self.parser._parser_ssh.format_help()
self.assert_snapshot('ssh_help', help_output)

def test_tls_help(self):
self.parser._set_defaults(None)
help_output = self.parser._parser_tls.format_help()
self.assert_snapshot('tls_help', help_output)
if not self.python_version == "3.10":
self.parser._set_defaults(None)
help_output = self.parser._parser_tls.format_help()
self.assert_snapshot('tls_help', help_output)


class CreateParserFunctionTestCase(unittest.TestCase):
Expand Down

0 comments on commit 1e4967b

Please sign in to comment.