aboutsummaryrefslogtreecommitdiff
path: root/test_ipaddress.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-02-04 00:51:35 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-02-04 00:51:35 +0100
commit6a79a4db8157ffbf235cce12751dc718d6d48229 (patch)
treec70693db4846153b8b132bad9c8e8b2c5908bf3f /test_ipaddress.py
parent03013367a16ed775a1f26bd653af934e7dc67c11 (diff)
downloadipaddress-6a79a4db8157ffbf235cce12751dc718d6d48229.tar.gz
3.3 compat
Diffstat (limited to 'test_ipaddress.py')
-rw-r--r--test_ipaddress.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test_ipaddress.py b/test_ipaddress.py
index be55ec0..e80ecd9 100644
--- a/test_ipaddress.py
+++ b/test_ipaddress.py
@@ -585,9 +585,9 @@ class IpaddrUnitTest(unittest.TestCase):
self.ipv6_network = ipaddress.IPv6Network(u'2001:658:22a:cafe::/64')
def testRepr(self):
- self.assertTrue(re.match(ur"IPv4Interface\(u?'1.2.3.4/32'\)",
+ self.assertTrue(re.match(u"IPv4Interface\(u?'1.2.3.4/32'\)",
repr(ipaddress.IPv4Interface(u'1.2.3.4'))))
- self.assertTrue(re.match(ur"IPv6Interface\(u?'::1/128'\)",
+ self.assertTrue(re.match(u"IPv6Interface\(u?'::1/128'\)",
repr(ipaddress.IPv6Interface(u'::1'))))
# issue57
@@ -615,7 +615,7 @@ class IpaddrUnitTest(unittest.TestCase):
ipaddress.IPv4Address(u'10.10.10.12')])
self.assertEqual(first, last)
self.assertEqual(128, ipaddress._count_righthand_zero_bits(0, 128))
- self.assertTrue(re.match(ur"IPv4Network\(u?'1.2.3.0/24'\)", repr(self.ipv4_network)))
+ self.assertTrue(re.match(u"IPv4Network\(u?'1.2.3.0/24'\)", repr(self.ipv4_network)))
def testMissingAddressVersion(self):
class Broken(ipaddress._BaseAddress):