stupid me i shouldn't use assert() in tests
authorDavid Aguilar <davvid@gmail.com>
Sat, 31 May 2008 23:56:20 +0000 (16:56 -0700)
committerDavid Aguilar <davvid@gmail.com>
Sat, 31 May 2008 23:56:20 +0000 (16:56 -0700)
assert_true instead because optimized python won't see asserts.

Signed-off-by: David Aguilar <davvid@gmail.com>
test/git/test_git.py

index 8b302b7ff6d91f2e70e090af93c42b24cc91645b..61b90a5f2c1144caeaa958b63a37fda14c8f3585 100644 (file)
@@ -54,4 +54,4 @@ class TestGit(object):
 
     def test_it_handles_large_input(self):
         output = self.git.execute(["cat", "/bin/bash"])
-        assert(len(output) > 4096) # at least 4k
+        assert_true(len(output) > 4096) # at least 4k