From 02552b3c684f8fc1859af7660f345ff0c038e4f4 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Thu, 7 Nov 2013 11:44:28 -0500 Subject: Fix unit tests to exit with the correct return code --- test_dotfiles.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test_dotfiles.py') diff --git a/test_dotfiles.py b/test_dotfiles.py index babe43c..b5521d2 100755 --- a/test_dotfiles.py +++ b/test_dotfiles.py @@ -301,9 +301,5 @@ class DotfilesTestCase(unittest.TestCase): os.path.join(self.homedir, dotfile))) -def suite(): - suite = unittest.TestLoader().loadTestsFromTestCase(DotfilesTestCase) - return suite - if __name__ == '__main__': - unittest.TextTestRunner().run(suite()) + unittest.main() -- cgit v1.2.3