Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue1147 Use pathlib #228

Merged
merged 4 commits into from
Jul 26, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Path.walk is only available in Python 3.12+
FlorianPommerening committed Jul 23, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
Czaki Grzegorz Bokota
commit f95a79b457d75ed4f221a758cd8f007dbfd72831
3 changes: 2 additions & 1 deletion driver/tests.py
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
py.test driver/tests.py
"""

import os
from pathlib import Path
import subprocess
import sys
@@ -126,7 +127,7 @@ def preexec_fn():

def test_automatic_domain_file_name_computation():
benchmarks_dir = REPO_ROOT_DIR / "benchmarks"
for dirpath, dirnames, filenames in benchmarks_dir.walk():
for dirpath, dirnames, filenames in os.walk(benchmarks_dir):
for filename in filenames:
if "domain" not in filename:
assert find_domain_path(dirpath / filename)