Skip to content

Commit

Permalink
Groovy context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcorser committed Jul 31, 2015
1 parent d64b632 commit 684eaa9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dulwich/tests/test_repository.py
Expand Up @@ -777,4 +777,5 @@ def test_discover_isrepo(self):
self.assertEqual(r.head(), self._repo.head())

def test_discover_notrepo(self):
self.assertRaises(NotGitRepository, Repo.discover('/'))
with self.assertRaises(NotGitRepository):
Repo.discover('/')

0 comments on commit 684eaa9

Please sign in to comment.