Move expected failure to testutils.py where it can be tagged.
Change to example.com/40 for iniplist with leftover bits to ignore.
This commit is contained in:
1 parent
e5c03665e9
commit
36df47f019
2 files changed
+6
-3
No files matched your search
+1
-3
@@ -70,7 +70,7 @@ def iniplist(ipaddr,iplist):
|
||||
True
|
||||
>>> iniplist('4.2.2.2',['b.resolvers.Level3.net'])
|
||||
True
|
||||
>>> iniplist('2606:2800:220:1:248:1893:25c8:1946',['example.com/64'])
|
||||
>>> iniplist('2606:2800:220:1::',['example.com/40'])
|
||||
True
|
||||
>>> iniplist('4.2.2.2',['nothing.example.com'])
|
||||
False
|
||||
@@ -134,8 +134,6 @@ def parseaddr(t):
|
||||
('God@heaven', '[email protected]')
|
||||
>>> parseaddr('Real Name ((comment)) <[email protected]>')
|
||||
('Real Name (comment)', '[email protected]')
|
||||
>>> parseaddr('a(WRONG)@b')
|
||||
('WRONG WRONG', 'a@b')
|
||||
"""
|
||||
#return email.utils.parseaddr(t)
|
||||
res = email.utils.parseaddr(t)
|
||||
|
||||
Reference in new issue
Block a user