Skip to content

Commit

Permalink
In Python 2.6, there is no TestProgram
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris NeJame committed Jun 22, 2017
1 parent f9a2fc5 commit 3cb5fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contextional/tests/test_failure.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TestFailureResult(unittest.TestCase):

@classmethod
def setUpClass(cls):
test_program = unittest.TestProgram(
test_program = unittest.main(
module="contextional.tests.failure",
testRunner=SilentTestRunner,
argv=["contextional/tests/test_failure.py"],
Expand Down
2 changes: 1 addition & 1 deletion contextional/tests/test_success.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TestSuccessResult(unittest.TestCase):

@classmethod
def setUpClass(cls):
test_program = unittest.TestProgram(
test_program = unittest.main(
module="contextional.tests.success",
testRunner=SilentTestRunner,
argv=["contextional/tests/test_success.py"],
Expand Down

0 comments on commit 3cb5fdf

Please sign in to comment.