# HG changeset patch # User Augie Fackler # Date 1223666304 18000 # Node ID b66ed66c82e417f0bd32e0c1d6d7aae2c6bbea6f # Parent bfbce70a9a57e00f3788e69bd9f538ba8d66813a Fix this so the tests can still be run without nose. diff --git a/tests/test_push_command.py b/tests/test_push_command.py --- 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)