Skip to content

Commit

Permalink
Delete IP validation test that fails on some versions of Python (mkdo…
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin authored and ultrabug committed Oct 8, 2021
1 parent f4b1cdd commit cff0db7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions mkdocs/tests/config/config_options_tests.py
Expand Up @@ -197,18 +197,6 @@ def test_default_address(self):
self.assertEqual(value.host, '127.0.0.1')
self.assertEqual(value.port, 8000)

@unittest.skipIf(
sys.version_info >= (3, 9, 5),
"Leading zeros not allowed in IP addresses since Python3.9.5",
)
def test_IP_normalization(self):
addr = '127.000.000.001:8000'
option = config_options.IpAddress(default=addr)
value = option.validate(None)
self.assertEqual(str(value), '127.0.0.1:8000')
self.assertEqual(value.host, '127.0.0.1')
self.assertEqual(value.port, 8000)

@unittest.skipIf(
sys.version_info < (3, 9, 5),
"Leading zeros allowed in IP addresses before Python3.9.5",
Expand Down

0 comments on commit cff0db7

Please sign in to comment.