fix tests: adapt to breaking change of ipaddress.ip_address in py3.9.5
fixes https://github.com/spesmilo/electrum/issues/7307 We can simply remove that test as we don't actually care whether the leading zeroes are allowed. see https://github.com/python/cpython/commit/60ce8f0be6354ad565393ab449d8de5d713f35bc see https://bugs.python.org/issue36384
This commit is contained in:
@@ -231,7 +231,7 @@ class TestUtil(ElectrumTestCase):
|
||||
|
||||
def test_is_ip_address(self):
|
||||
self.assertTrue(is_ip_address("127.0.0.1"))
|
||||
self.assertTrue(is_ip_address("127.000.000.1"))
|
||||
#self.assertTrue(is_ip_address("127.000.000.1")) # disabled as result differs based on python version
|
||||
self.assertTrue(is_ip_address("255.255.255.255"))
|
||||
self.assertFalse(is_ip_address("255.255.256.255"))
|
||||
self.assertFalse(is_ip_address("123.456.789.000"))
|
||||
|
||||
Reference in New Issue
Block a user