aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ...
"""