summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-16 17:17:19 -0600
committerHarmon <Harmon758@gmail.com>2020-02-16 17:17:19 -0600
commit8a5a78b27ce1bcda6597b340d47a20efbac478d7 (patch)
treef5a975822df29c2cd80e9ab6912da52f37aaf077
parent7fd8768c64d192b0b26a00d6c12188fcbc2e3224 (diff)
downloadgitpython-8a5a78b27ce1bcda6597b340d47a20efbac478d7.tar.gz
Replace assert_false with assertFalse
-rw-r--r--git/test/lib/asserts.py6
-rw-r--r--git/test/test_repo.py5
2 files changed, 3 insertions, 8 deletions
diff --git a/git/test/lib/asserts.py b/git/test/lib/asserts.py
index 207bbd68..6c49a0c3 100644
--- a/git/test/lib/asserts.py
+++ b/git/test/lib/asserts.py
@@ -6,8 +6,4 @@
from unittest.mock import patch
-from nose.tools import (
- assert_false # @UnusedImport
-)
-
-__all__ = ['patch', 'assert_false']
+__all__ = ['patch']
diff --git a/git/test/test_repo.py b/git/test/test_repo.py
index fc836256..45a51fa6 100644
--- a/git/test/test_repo.py
+++ b/git/test/test_repo.py
@@ -40,8 +40,7 @@ from git.test.lib import (
patch,
TestBase,
with_rw_repo,
- fixture,
- assert_false
+ fixture
)
from git.util import HIDE_WINDOWS_KNOWN_ERRORS, cygpath
from git.test.lib import with_rw_directory
@@ -342,7 +341,7 @@ class TestRepo(TestBase):
def test_is_dirty_with_bare_repository(self):
orig_value = self.rorepo._bare
self.rorepo._bare = True
- assert_false(self.rorepo.is_dirty())
+ self.assertFalse(self.rorepo.is_dirty())
self.rorepo._bare = orig_value
def test_is_dirty(self):