forked from pool/python-sybil
- Fix issue with tests failing on different filesystem setups OBS-URL: https://build.opensuse.org/request/show/955343 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=26
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
diff --git a/sybil/integration/unittest.py b/sybil/integration/unittest.py
|
|
index 7129ddf..ce34caf 100644
|
|
--- a/sybil/integration/unittest.py
|
|
+++ b/sybil/integration/unittest.py
|
|
@@ -38,7 +38,7 @@ def unittest_integration(sybil: 'Sybil'):
|
|
|
|
def load_tests(loader=None, tests=None, pattern=None):
|
|
suite = TestSuite()
|
|
- for path in sybil.path.glob('**/*'):
|
|
+ for path in sorted(sybil.path.glob('**/*')):
|
|
if path.is_file() and sybil.should_parse(path):
|
|
document = sybil.parse(path)
|
|
|
|
diff --git a/tests/test_sybil.py b/tests/test_sybil.py
|
|
index 74a04ea..72a5aea 100644
|
|
--- a/tests/test_sybil.py
|
|
+++ b/tests/test_sybil.py
|
|
@@ -243,7 +243,7 @@ def parse(document):
|
|
|
|
def test_namespace(capsys):
|
|
sybil = Sybil([parse], path='./samples')
|
|
- documents = [sybil.parse(p) for p in sybil.path.glob('sample*.txt')]
|
|
+ documents = [sybil.parse(p) for p in sorted(sybil.path.glob('sample*.txt'))]
|
|
actual = []
|
|
for document in documents:
|
|
for example in document:
|