diff tests/test_push_command.py @ 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 5954a514ae26
children d87b57c719f0
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)