Commits

Fredrik Håård  committed 006d870

Fix tc on linux

  • Participants
  • Parent commits 5cf9863

Comments (0)

Files changed (1)

File hgapi/testhgapi.py

         try:
             self.repo.hg_update('notexistingref')
         except hgapi.HgException as update_ex:
-            self.assertEquals(update_ex.exit_code, -1)
-
+            self.assertNotEquals(update_ex.exit_code, None)
+            self.assertNotEquals(update_ex.exit_code, 0)
 def test_doc():
     #Prepare for doctest
     os.mkdir("./test_hgapi")
     try:
         test_doc()
     finally:
-        unittest.main()
+        unittest.main()