summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ipaddress.py
diff options
context:
space:
mode:
authorY5 <124019959+y5c4l3@users.noreply.github.com>2024-09-20 11:01:28 (GMT)
committerGitHub <noreply@github.com>2024-09-20 11:01:28 (GMT)
commitdb6eb3640a7d98db6fea17cf9da4cb14504e5571 (patch)
tree7a4e372507c417ccc334118299de8c76265d3b8a /Lib/test/test_ipaddress.py
parent622368d99c986ca1a9bdba951ac53f42d7ee6fca (diff)
downloadcpython-db6eb3640a7d98db6fea17cf9da4cb14504e5571.zip
cpython-db6eb3640a7d98db6fea17cf9da4cb14504e5571.tar.gz
cpython-db6eb3640a7d98db6fea17cf9da4cb14504e5571.tar.bz2
gh-124217, ipaddress: Add RFC 9637 reserved IPv6 block `3fff::/20` (#124240)
Signed-off-by: y5c4l3 <y5c4l3@proton.me>
Diffstat (limited to 'Lib/test/test_ipaddress.py')
-rw-r--r--Lib/test/test_ipaddress.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_ipaddress.py b/Lib/test/test_ipaddress.py
index aad779d..b1ac2b9 100644
--- a/Lib/test/test_ipaddress.py
+++ b/Lib/test/test_ipaddress.py
@@ -2433,6 +2433,8 @@ class IpaddrUnitTest(unittest.TestCase):
self.assertTrue(ipaddress.ip_address('2001:30::').is_global)
self.assertFalse(ipaddress.ip_address('2001:40::').is_global)
self.assertFalse(ipaddress.ip_address('2002::').is_global)
+ # gh-124217: conform with RFC 9637
+ self.assertFalse(ipaddress.ip_address('3fff::').is_global)
# some generic IETF reserved addresses
self.assertEqual(True, ipaddress.ip_address('100::').is_reserved)