Skip to content

Commit

Permalink
Bump timings when testing on PyPy.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Apr 17, 2022
1 parent 8dd8e41 commit 1e8e8ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/legacy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import functools
import logging
import os
import platform
import time
import unittest

Expand Down Expand Up @@ -90,5 +91,9 @@ def assertDeprecationWarnings(self, recorded_warnings, expected_warnings):
if os.environ.get("PYTHONASYNCIODEBUG"): # pragma: no cover
MS *= 10

# PyPy has a performance penalty for this test suite.
if platform.python_implementation() == "PyPy": # pragma: no cover
MS *= 5

# Ensure that timeouts are larger than the clock's resolution (for Windows).
MS = max(MS, 2.5 * time.get_clock_info("monotonic").resolution)

0 comments on commit 1e8e8ce

Please sign in to comment.