Skip to content

Commit 1c00a29

Browse files
committed
#210 reverting to old style asserts since we run tests with setuptools
in this branch
1 parent 5669839 commit 1c00a29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

about_code_tool/tests/test_genattrib.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,26 @@ def test_component_subset_to_sublist(self):
7373
self.assertEqual(expected, result)
7474

7575
def test_genattrib_basic(self):
76+
self.maxDiff =None
7677
about_dir = 'about_code_tool/tests/testdata/genattrib/basic/'
7778
generated_attrib = get_temp_file('generated.html')
7879
args = [about_dir, generated_attrib]
7980
options = None
8081
genattrib_command_tester(args, options)
8182
expected = open('about_code_tool/tests/testdata/genattrib/basic.html').read()
8283
result = open(generated_attrib).read()
83-
assert expected ==result
84+
self.assertEqual(expected, result)
8485

8586
def test_genattrib_from_zipped_dir(self):
87+
self.maxDiff =None
8688
about_dir = 'about_code_tool/tests/testdata/genattrib/zipped_about.zip'
8789
generated_attrib = get_temp_file('generated.html')
8890
args = [about_dir, generated_attrib]
8991
options = None
9092
genattrib_command_tester(args, options)
9193
expected = open('about_code_tool/tests/testdata/genattrib/zipped_about.html').read()
9294
result = open(generated_attrib).read()
93-
assert expected ==result
95+
self.assertEqual(expected, result)
9496

9597

9698
def genattrib_command_tester(args, options):

0 commit comments

Comments
 (0)