git.samba.org
/
jelmer
/
gitpython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5278c5
)
stupid me i shouldn't use assert() in tests
author
David Aguilar
<davvid@gmail.com>
Sat, 31 May 2008 23:56:20 +0000
(16:56 -0700)
committer
David 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
patch
|
blob
|
history
diff --git
a/test/git/test_git.py
b/test/git/test_git.py
index 8b302b7ff6d91f2e70e090af93c42b24cc91645b..61b90a5f2c1144caeaa958b63a37fda14c8f3585 100644
(file)
--- a/
test/git/test_git.py
+++ b/
test/git/test_git.py
@@
-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