Skip to content

Commit

Permalink
Resolve test incompatibility with git v2.21.0
Browse files Browse the repository at this point in the history
This fixes #869
  • Loading branch information
jeking3 committed May 5, 2019
1 parent 52ee33a commit 11fd713
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dockernose.sh
Expand Up @@ -4,5 +4,7 @@ if [ -z "${PYVER}" ]; then
PYVER=py37
fi

# remember to use "-s" if you inject pdb.set_trace() as this disables nosetests capture of streams

tox -e ${PYVER} --notest
PYTHONPATH=/src/.tox/${PYVER}/lib/python*/site-packages /src/.tox/${PYVER}/bin/nosetests --pdb $*
2 changes: 1 addition & 1 deletion git/test/test_remote.py
Expand Up @@ -638,7 +638,7 @@ def test_multiple_urls(self, rw_repo):

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

@with_rw_repo('0.1.6', bare=False)
Expand Down

0 comments on commit 11fd713

Please sign in to comment.