Skip to content

Commit 53401cf

Browse files
committedSep 21, 2015
Make failing tests fail
1 parent 140ebdf commit 53401cf

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed
 

‎tests/test_integration.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -307,18 +307,11 @@ class TestCheck(DemoBuildTest):
307307

308308
def test_check_links(self):
309309
with cd(self.target_dir):
310-
try:
311-
__main__.main(['check', '-l'])
312-
except SystemExit as e:
313-
self.assertEqual(e.code, 0)
310+
self.assertIsNone(__main__.main(['check', '-l']))
314311

315312
def test_check_files(self):
316313
with cd(self.target_dir):
317-
try:
318-
__main__.main(['check', '-f'])
319-
except SystemExit as e:
320-
self.assertEqual(e.code, 0)
321-
314+
self.assertIsNone(__main__.main(['check', '-f']))
322315

323316
class TestCheckAbsoluteSubFolder(TestCheck):
324317
"""Validate links in a site which is:

0 commit comments

Comments
 (0)
Please sign in to comment.