Skip to content

Commit 3470fbc

Browse files
committed
Add unit test for bytes repository paths
1 parent 487fb59 commit 3470fbc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_repository.py

+7
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,13 @@ def test_head(self):
482482
self.assertFalse(self.repo.head_is_detached)
483483

484484

485+
class BytesStringRepositoryTest(utils.NoRepoTestCase):
486+
487+
def test_bytes_string(self):
488+
repo_path = b'./test/data/testrepo.git/'
489+
pygit2.Repository(repo_path)
490+
491+
485492
class CloneRepositoryTest(utils.NoRepoTestCase):
486493

487494
def test_clone_repository(self):

0 commit comments

Comments
 (0)