Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/cram.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
topdir = testsdir.parent

@pytest.mark.skipif(os.name != "posix", reason = "cram requires a POSIX platform")
@pytest.mark.parametrize("testfile", testsdir.glob("*.cram"), ids = str)
@pytest.mark.parametrize("testfile", list(testsdir.glob("*.cram")), ids = str)
def pytest_cram(testfile):
# Check the exit status ourselves for nicer test output on failure
result = run(["cram", testfile], cwd = topdir)
Expand Down
6 changes: 4 additions & 2 deletions tests/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
datadir = testsdir / "data/markdown/"

def cases(pattern):
for case in datadir.glob(pattern):
yield pytest.param(
return [
pytest.param(
case,
id = str(case.relative_to(topdir)))
for case in datadir.glob(pattern)
]


@pytest.mark.parametrize("case", cases("roundtrip-*.md"))
Expand Down
Loading