Skip to content

Commit

Permalink
fix tests: adapt to breaking change of ipaddress.ip_address in py3.9.5
Browse files Browse the repository at this point in the history
fixes spesmilo#7307

We can simply remove that test as we don't actually care whether the
leading zeroes are allowed.

see
python/cpython@60ce8f0
see https://bugs.python.org/issue36384

Backported from Electrum v4.1.3.
  • Loading branch information
SomberNight authored and Jeremy Rand committed Apr 24, 2022
1 parent 5dabf0a commit 99bb5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electrum_nmc/electrum/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_list_enabled_bits(self):

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"))
Expand Down

0 comments on commit 99bb5a1

Please sign in to comment.