Skip to content

Commit 8a5a78b

Browse files
committed
Replace assert_false with assertFalse
1 parent 7fd8768 commit 8a5a78b

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

git/test/lib/asserts.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@
66

77
from unittest.mock import patch
88

9-
from nose.tools import (
10-
assert_false # @UnusedImport
11-
)
12-
13-
__all__ = ['patch', 'assert_false']
9+
__all__ = ['patch']

git/test/test_repo.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
patch,
4141
TestBase,
4242
with_rw_repo,
43-
fixture,
44-
assert_false
43+
fixture
4544
)
4645
from git.util import HIDE_WINDOWS_KNOWN_ERRORS, cygpath
4746
from git.test.lib import with_rw_directory
@@ -342,7 +341,7 @@ def test_repr(self):
342341
def test_is_dirty_with_bare_repository(self):
343342
orig_value = self.rorepo._bare
344343
self.rorepo._bare = True
345-
assert_false(self.rorepo.is_dirty())
344+
self.assertFalse(self.rorepo.is_dirty())
346345
self.rorepo._bare = orig_value
347346

348347
def test_is_dirty(self):

0 commit comments

Comments
 (0)