Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyBF committed Jan 25, 2025
1 parent 74170e0 commit 4082834
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions ext/pytests/test_secondary_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@


def folder_pairs(folder):
return (
(int(split[0]), int(split[1]))
for split in (f.stem.split("_") for f in folder.glob("*"))
)
filename_parts = (f.stem.split("_") for f in folder.glob("**/*") if f.is_file())
return ((int(split[0]), int(split[1])) for split in filename_parts)


def test_secondary_job(tmp_path, monkeypatch):
Expand Down
2 changes: 1 addition & 1 deletion ext/tests/save_load_resolution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ fn test_checksum() {
.compute_through_bidegree(Bidegree::s_t(2, 2));

let mut path = tempdir.path().to_owned();
path.push("differentials/2_2_differential");
path.push("differentials/2/2_2_differential");

let mut file = OpenOptions::new()
.read(true)
Expand Down

0 comments on commit 4082834

Please sign in to comment.