diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2019-11-04 16:01:49 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2019-11-04 16:01:49 +0000 |
commit | fa6e53c59b6afa61fbb5a042ee6c36491e24afdf (patch) | |
tree | ff2ef7742c6a52b6791057590bbfe59963367cbf /mail/py-pyspf/files/patch-test_testspf.py | |
parent | Update to 3.7.4.1 (diff) |
Update to 2.0.13
- Update WWW
Changes: https://github.com/sdgathman/pyspf/blob/master/CHANGELOG
Diffstat (limited to 'mail/py-pyspf/files/patch-test_testspf.py')
-rw-r--r-- | mail/py-pyspf/files/patch-test_testspf.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/mail/py-pyspf/files/patch-test_testspf.py b/mail/py-pyspf/files/patch-test_testspf.py index 816b539f0ac4..b844193a802d 100644 --- a/mail/py-pyspf/files/patch-test_testspf.py +++ b/mail/py-pyspf/files/patch-test_testspf.py @@ -1,19 +1,19 @@ ---- test/testspf.py.orig 2015-01-12 22:47:56 UTC +--- test/testspf.py.orig 2019-08-31 02:49:19 UTC +++ test/testspf.py -@@ -221,9 +221,9 @@ def makeSuite(filename): +@@ -237,9 +237,9 @@ def docsuite(): - def suite(): - suite = unittest.makeSuite(SPFTestCases,'test') + def suite(skipdoc=False): + suite = docsuite() - suite.addTest(makeSuite('test.yml')) - suite.addTest(makeSuite('rfc7208-tests.yml')) - suite.addTest(makeSuite('rfc4408-tests.yml')) + suite.addTest(makeSuite('test/test.yml')) + suite.addTest(makeSuite('test/rfc7208-tests.yml')) + suite.addTest(makeSuite('test/rfc4408-tests.yml')) - import doctest - suite.addTest(doctest.DocTestSuite(spf)) return suite -@@ -237,9 +237,9 @@ if __name__ == '__main__': + + if __name__ == '__main__': +@@ -255,9 +255,9 @@ if __name__ == '__main__': # a specific test selected by id from YAML files if not tc: tc = unittest.TestSuite() @@ -26,12 +26,12 @@ if i in t0: tc.addTest(SPFTestCase(t0[i])) if i in t1: -@@ -248,7 +248,7 @@ if __name__ == '__main__': +@@ -266,7 +266,7 @@ if __name__ == '__main__': tc.addTest(SPFTestCase(t2[i])) if not tc: # load zonedata for doctests -- fp = open('doctest.yml','rb') -+ fp = open('test/doctest.yml','rb') - try: +- with open('doctest.yml','rb') as fp: ++ with open('test/doctest.yml','rb') as fp: zonedata = loadZone(next(yaml.safe_load_all(fp))) - finally: fp.close() + if doctest: + tc = docsuite() # doctests only |