Skip to content

Commit

Permalink
Merge pull request #207 from nikosavola/205-fix-klayout-test-after-204
Browse files Browse the repository at this point in the history
Use temporary directory factory in session scope tests
  • Loading branch information
joamatab authored Oct 21, 2023
2 parents 76b611a + 4eeec6a commit 21e637a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gplugins/klayout/tests/test_plot_nets.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@


@pytest.fixture(scope="session")
def klayout_netlist(tmp_path) -> str:
def klayout_netlist(tmpdir_factory) -> str:
"""Get KLayout netlist file for `pads_correct`. Cached for session scope."""
tmp_path = tmpdir_factory.mktemp("data")
c = pads_correct()

gdspath = c.write_gds(gdsdir=tmp_path)
l2n = get_l2n(gdspath)
netlist_path = str(Path(tmp_path) / f"{c.name}.txt")
Expand Down

0 comments on commit 21e637a

Please sign in to comment.