Skip to content

Commit 11fd713

Browse files
committed
Resolve test incompatibility with git v2.21.0
This fixes gitpython-developers#869
1 parent 52ee33a commit 11fd713

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dockernose.sh

+2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ if [ -z "${PYVER}" ]; then
44
PYVER=py37
55
fi
66

7+
# remember to use "-s" if you inject pdb.set_trace() as this disables nosetests capture of streams
8+
79
tox -e ${PYVER} --notest
810
PYTHONPATH=/src/.tox/${PYVER}/lib/python*/site-packages /src/.tox/${PYVER}/bin/nosetests --pdb $*

git/test/test_remote.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ def test_multiple_urls(self, rw_repo):
638638

639639
def test_fetch_error(self):
640640
rem = self.rorepo.remote('origin')
641-
with self.assertRaisesRegex(GitCommandError, "Couldn't find remote ref __BAD_REF__"):
641+
with self.assertRaisesRegex(GitCommandError, "[Cc]ouldn't find remote ref __BAD_REF__"):
642642
rem.fetch('__BAD_REF__')
643643

644644
@with_rw_repo('0.1.6', bare=False)

0 commit comments

Comments
 (0)