aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-01-23 08:44:53 +0100
committerGuido Günther <agx@sigxcpu.org>2017-01-23 08:44:53 +0100
commit06ae8c94198ff280e01d0e04658e096c4dc55711 (patch)
tree3954e0dd6818ce2b777f20da4953fd19ecef76a9
parent84dc3b0b247bb65c5d9e53e9d2237af2b49c0996 (diff)
tests: make sure we fail properly with toplevel == True
Git-Dch: Ignore
-rw-r--r--tests/doctests/test_GitRepository.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/doctests/test_GitRepository.py b/tests/doctests/test_GitRepository.py
index 30ac385..ea1ff83 100644
--- a/tests/doctests/test_GitRepository.py
+++ b/tests/doctests/test_GitRepository.py
@@ -80,6 +80,10 @@ def test_subdir():
>>> repo = gbp.git.GitRepository(os.path.join(dirs['repo'], 'subdir'), toplevel=False)
>>> repo.path == dirs['repo']
True
+ >>> repo = gbp.git.GitRepository(os.path.join(dirs['repo'], 'subdir'), toplevel=True) # doctest:+ELLIPSIS
+ Traceback (most recent call last):
+ ...
+ GitRepositoryError: Not the toplevel of a Git repository at ...
"""