Skip to content

Commit

Permalink
Bit more elegant wat to check for pypy (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein authored Nov 17, 2023
1 parent 202b526 commit 071f0f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ def find_examples(query=None, negative_query=None, return_stems=False):
can_use_wgpu_lib = _determine_can_use_wgpu_lib()
can_use_glfw = _determine_can_use_glfw()
is_ci = bool(os.getenv("CI", None))
is_pypy = "__pypy__" in sys.builtin_module_names
is_pypy = sys.implementation.name == "pypy"
wgpu_backend = get_wgpu_backend()
is_lavapipe = wgpu_backend.lower() == "cpu vulkan"
2 changes: 1 addition & 1 deletion tests_mem/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _determine_can_use_pyside6():
can_use_glfw = _determine_can_use_glfw()
can_use_pyside6 = _determine_can_use_pyside6()
is_ci = bool(os.getenv("CI", None))
is_pypy = "__pypy__" in sys.builtin_module_names
is_pypy = sys.implementation.name == "pypy"

TEST_ITERS = None

Expand Down

0 comments on commit 071f0f0

Please sign in to comment.