summaryrefslogtreecommitdiff
path: root/test/testlib/asserts.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-11 20:21:22 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-11 20:21:22 +0200
commit9a119924bd314934158515a1a5f5877be63f6f91 (patch)
tree927fbe62fe20c62eedf7beed91ac80b10dc60774 /test/testlib/asserts.py
parent15b9129ec639112e94ea96b6a395ad9b149515d1 (diff)
downloadgitpython-9a119924bd314934158515a1a5f5877be63f6f91.tar.gz
fixed issue in Ref.name implementation which would not handle components properly
Diffstat (limited to 'test/testlib/asserts.py')
-rw-r--r--test/testlib/asserts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testlib/asserts.py b/test/testlib/asserts.py
index 8f2acdc9..345f74ec 100644
--- a/test/testlib/asserts.py
+++ b/test/testlib/asserts.py
@@ -23,11 +23,11 @@ def assert_not_instance_of(expected, actual, msg=None):
def assert_none(actual, msg=None):
"""verify that item is None"""
- assert_equal(None, actual, msg)
+ assert actual is None, msg
def assert_not_none(actual, msg=None):
"""verify that item is None"""
- assert_not_equal(None, actual, msg)
+ assert actual is not None, msg
def assert_match(pattern, string, msg=None):
"""verify that the pattern matches the string"""