-
Notifications
You must be signed in to change notification settings - Fork 22
/
pymilter-check.patch
27 lines (26 loc) · 974 Bytes
/
pymilter-check.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff -up ./Milter/utils.py.check ./Milter/utils.py
--- ./Milter/utils.py.check 2018-08-04 23:01:23.858668412 -0400
+++ ./Milter/utils.py 2018-08-04 23:01:39.460869588 -0400
@@ -68,10 +68,6 @@ def iniplist(ipaddr,iplist):
True
>>> iniplist('192.168.0.45',['192.168.0.*'])
True
- >>> iniplist('4.2.2.2',['b.resolvers.Level3.net'])
- True
- >>> iniplist('2606:2800:220:1::',['example.com/40'])
- True
>>> iniplist('4.2.2.2',['nothing.example.com'])
False
>>> iniplist('2001:610:779:0:223:6cff:fe9a:9cf3',['127.0.0.1','172.20.1.0/24','2001:610:779::/48'])
diff -up ./test.py.check ./test.py
--- ./test.py.check 2018-08-04 23:04:58.609420815 -0400
+++ ./test.py 2018-08-04 23:05:40.070949438 -0400
@@ -14,6 +14,8 @@ def suite():
return s
if __name__ == '__main__':
+ import sys
try: os.remove('test/milter.log')
except: pass
- unittest.TextTestRunner().run(suite())
+ rc = unittest.TextTestRunner().run(suite())
+ sys.exit(len(rc.failures))