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

Fix klayout tests after #204 #205

Closed
nikosavola opened this issue Oct 20, 2023 · 0 comments · Fixed by #207
Closed

Fix klayout tests after #204 #205

nikosavola opened this issue Oct 20, 2023 · 0 comments · Fixed by #207
Labels
bug Something isn't working

Comments

@nikosavola
Copy link
Member

Describe the bug
klayout test failing after #204

ERROR gplugins/klayout/tests/test_plot_nets.py::test_plot_nets - Failed: ScopeMismatch: You tried to access the function scoped fixture tmp_path with a session scoped request object, involved factories:
gplugins/klayout/tests/test_plot_nets.py:10:  def klayout_netlist(tmp_path) -> str
../../../../../opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/_pytest/tmpdir.py:259:  def tmp_path(request: _pytest.fixtures.FixtureRequest, tmp_path_factory: _pytest.tmpdir.TempPathFactory) -> Generator[pathlib.Path, NoneType, NoneType]
ERROR gplugins/klayout/tests/test_plot_nets.py::test_plot_nets_interactive - Failed: ScopeMismatch: You tried to access the function scoped fixture tmp_path with a session scoped request object, involved factories:
gplugins/klayout/tests/test_plot_nets.py:10:  def klayout_netlist(tmp_path) -> str
../../../../../opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/_pytest/tmpdir.py:259:  def tmp_path(request: _pytest.fixtures.FixtureRequest, tmp_path_factory: _pytest.tmpdir.TempPathFactory) -> Generator[pathlib.Path, NoneType, NoneType]
ERROR gplugins/klayout/tests/test_plot_nets.py::test_plot_nets_not_fully_connected - Failed: ScopeMismatch: You tried to access the function scoped fixture tmp_path with a session scoped request object, involved factories:
gplugins/klayout/tests/test_plot_nets.py:10:  def klayout_netlist(tmp_path) -> str
../../../../../opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/_pytest/tmpdir.py:259:  def tmp_path(request: _pytest.fixtures.FixtureRequest, tmp_path_factory: _pytest.tmpdir.TempPathFactory) -> Generator[pathlib.Path, NoneType, NoneType]
ERROR gplugins/klayout/tests/test_plot_nets.py::test_plot_nets_no_labels - Failed: ScopeMismatch: You tried to access the function scoped fixture tmp_path with a session scoped request object, involved factories:
gplugins/klayout/tests/test_plot_nets.py:10:  def klayout_netlist(tmp_path) -> str
../../../../../opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/_pytest/tmpdir.py:259:  def tmp_path(request: _pytest.fixtures.FixtureRequest, tmp_path_factory: _pytest.tmpdir.TempPathFactory) -> Generator[pathlib.Path, NoneType, NoneType]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant