diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-18 20:56:47 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-18 20:56:47 (GMT) |
commit | a556af77a7853cf198011eaa5a3258751d72853f (patch) | |
tree | 5ce5ccf5c775f152c38aade2db9d3e157ea4185b /Lib/test/test_ipaddress.py | |
parent | 5f38f5c5028d5c015e67ffa8463bf42c66ad2e05 (diff) | |
download | cpython-a556af77a7853cf198011eaa5a3258751d72853f.zip cpython-a556af77a7853cf198011eaa5a3258751d72853f.tar.gz cpython-a556af77a7853cf198011eaa5a3258751d72853f.tar.bz2 |
Fixed tests for issue #23133 (pickling of IPv4Network was not tested).
Diffstat (limited to 'Lib/test/test_ipaddress.py')
-rw-r--r-- | Lib/test/test_ipaddress.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_ipaddress.py b/Lib/test/test_ipaddress.py index 02028bf..95518af 100644 --- a/Lib/test/test_ipaddress.py +++ b/Lib/test/test_ipaddress.py @@ -456,16 +456,16 @@ class NetmaskTestMixin_v4(CommonTestMixin_v4): assertBadNetmask("1.1.1.1", "pudding") assertBadNetmask("1.1.1.1", "::") - -class InterfaceTestCase_v4(BaseTestCase, NetmaskTestMixin_v4): - factory = ipaddress.IPv4Interface - def test_pickle(self): self.pickle_test('192.0.2.0/27') self.pickle_test('192.0.2.0/31') # IPV4LENGTH - 1 self.pickle_test('192.0.2.0') # IPV4LENGTH +class InterfaceTestCase_v4(BaseTestCase, NetmaskTestMixin_v4): + factory = ipaddress.IPv4Interface + + class NetworkTestCase_v4(BaseTestCase, NetmaskTestMixin_v4): factory = ipaddress.IPv4Network |