Browse Source

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 60ce8f0be6
see https://bugs.python.org/issue36384
patch-4
SomberNight 4 years ago
parent
commit
eb6b4580e8
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/tests/test_util.py

2
electrum/tests/test_util.py

@ -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"))

Loading…
Cancel
Save