Mercurial > hgsubversion
changeset 27:b66ed66c82e4
Fix this so the tests can still be run without nose.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Fri, 10 Oct 2008 14:18:24 -0500 |
parents | bfbce70a9a57 |
children | 9c481cae0428 |
files | tests/test_push_command.py |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_push_command.py +++ b/tests/test_push_command.py @@ -152,9 +152,12 @@ if push_works: # # def test_push_symlink_file(self): # assert False +else: + class PushTests(unittest.TestCase): + """Dummy so the test runner doesn't get upset. + """ + pass def suite(): - if push_works: - return unittest.TestLoader().loadTestsFromTestCase(PushTests) - return [] + return unittest.TestLoader().loadTestsFromTestCase(PushTests)