From 99471bb594c365c7ad7ba99faa9e23ee78255eb9 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 16 Feb 2020 15:28:45 -0600 Subject: Remove and replace assert_match with assertRegex Also remove no longer used assert_not_none --- git/test/test_git.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git/test/test_git.py') diff --git a/git/test/test_git.py b/git/test/test_git.py index 965d7f39..2be39fce 100644 --- a/git/test/test_git.py +++ b/git/test/test_git.py @@ -25,7 +25,6 @@ from git.test.lib import ( raises, assert_equal, assert_true, - assert_match, fixture_path ) from git.test.lib import with_rw_directory @@ -87,7 +86,7 @@ class TestGit(TestBase): self.assertEqual({'-s', '-t'}, set(res)) def test_it_executes_git_to_shell_and_returns_result(self): - assert_match(r'^git version [\d\.]{2}.*$', self.git.execute(["git", "version"])) + self.assertRegex(self.git.execute(["git", "version"]), r'^git version [\d\.]{2}.*$') def test_it_accepts_stdin(self): filename = fixture_path("cat_file_blob") -- cgit v1.2.1