Skip to content

Commit 24d04e8

Browse files
committed
Replace assert_not_equal with assertNotEqual
1 parent ab361cf commit 24d04e8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

git/test/lib/asserts.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
from unittest.mock import patch
88

99
from nose.tools import (
10-
assert_not_equal, # @UnusedImport
1110
assert_raises, # @UnusedImport
1211
raises, # @UnusedImport
1312
assert_true, # @UnusedImport
1413
assert_false # @UnusedImport
1514
)
1615

17-
__all__ = ['assert_not_equal', 'assert_raises', 'patch', 'raises',
16+
__all__ = ['assert_raises', 'patch', 'raises',
1817
'assert_true', 'assert_false']

git/test/test_commit.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from git.repo.fun import touch
2323
from git.test.lib import (
2424
TestBase,
25-
assert_not_equal,
2625
with_rw_repo,
2726
fixture_path,
2827
StringProcessAdapter
@@ -254,7 +253,7 @@ def test_equality(self):
254253
commit2 = Commit(self.rorepo, Commit.NULL_BIN_SHA)
255254
commit3 = Commit(self.rorepo, "\1" * 20)
256255
self.assertEqual(commit1, commit2)
257-
assert_not_equal(commit2, commit3)
256+
self.assertNotEqual(commit2, commit3)
258257

259258
def test_iter_parents(self):
260259
# should return all but ourselves, even if skip is defined

0 commit comments

Comments
 (0)