From eb6b4580e8d8ff2e4578afee4cd47d52de9f7bcd Mon Sep 17 00:00:00 2001 From: SomberNight <somber.night@protonmail.com> Date: Sat, 5 Jun 2021 08:01:38 +0200 Subject: [PATCH] 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 --- electrum/tests/test_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/tests/test_util.py b/electrum/tests/test_util.py index d8a802eb2..9441c30a5 100644 --- a/electrum/tests/test_util.py +++ b/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"))