Skip to content

Commit

Permalink
Path.walk is only available in Python 3.12+
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianPommerening committed Jul 23, 2024
1 parent 3971a6f commit f95a79b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion driver/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
py.test driver/tests.py
"""

import os
from pathlib import Path
import subprocess
import sys
Expand Down Expand Up @@ -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)

0 comments on commit f95a79b

Please sign in to comment.