Commits

reneeotten authored and Perry E. Metzger committed aaa80161d8d
py-netaddr: add missing dependency

- enable tests - add size to checksums Closes: https://trac.macports.org/ticket/56849
No tags

python/py-netaddr/files/patch-test_ieee_parsers.py.diff

Added
1 +--- netaddr/tests/eui/test_ieee_parsers.py.orig 2018-07-24 09:41:13.000000000 -0400
2 ++++ netaddr/tests/eui/test_ieee_parsers.py 2018-07-24 09:42:08.000000000 -0400
3 +@@ -12,7 +12,7 @@
4 + def test_oui_parser_py2():
5 + from cStringIO import StringIO
6 + outfile = StringIO()
7 +- with open(os.path.join(SAMPLE_DIR, 'sample_oui.txt')) as infile:
8 ++ with open(os.path.join(SAMPLE_DIR, 'sample_oui.txt'), 'rb') as infile:
9 + iab_parser = OUIIndexParser(infile)
10 + iab_parser.attach(FileIndexer(outfile))
11 + iab_parser.parse()
12 +@@ -23,7 +23,7 @@
13 + def test_iab_parser_py2():
14 + from cStringIO import StringIO
15 + outfile = StringIO()
16 +- with open(os.path.join(SAMPLE_DIR, 'sample_iab.txt')) as infile:
17 ++ with open(os.path.join(SAMPLE_DIR, 'sample_iab.txt'), 'rb') as infile:
18 + iab_parser = IABIndexParser(infile)
19 + iab_parser.attach(FileIndexer(outfile))
20 + iab_parser.parse()
21 +@@ -34,7 +34,7 @@
22 + def test_oui_parser_py3():
23 + from io import StringIO
24 + outfile = StringIO()
25 +- with open(os.path.join(SAMPLE_DIR, 'sample_oui.txt')) as infile:
26 ++ with open(os.path.join(SAMPLE_DIR, 'sample_oui.txt'), 'rb') as infile:
27 + iab_parser = OUIIndexParser(infile)
28 + iab_parser.attach(FileIndexer(outfile))
29 + iab_parser.parse()
30 +@@ -45,7 +45,7 @@
31 + def test_iab_parser_py3():
32 + from io import StringIO
33 + outfile = StringIO()
34 +- with open(os.path.join(SAMPLE_DIR, 'sample_iab.txt')) as infile:
35 ++ with open(os.path.join(SAMPLE_DIR, 'sample_iab.txt'), 'rb') as infile:
36 + iab_parser = IABIndexParser(infile)
37 + iab_parser.attach(FileIndexer(outfile))
38 + iab_parser.parse()

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut