Skip to content

Commit f540611

Browse files
committed
Remove the pytest-memray as it won't even install on windows
1 parent 6a3879c commit f540611

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ dependencies = [
6363
"pytest-cov",
6464
"pytest-freezer",
6565
"pytest-github-actions-annotate-failures",
66-
"pytest-memray",
6766
"pytest-mock",
6867
"pytest-randomly",
6968
"requests-mock",

test/test_memory.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,13 @@
22

33
import contextlib
44
import logging
5-
import os
6-
import platform
75

86
import pytest
97

10-
import example.api
118
import example.calculator
12-
import example.default
139

1410

1511
class TestMemory:
16-
@pytest.mark.skipif(
17-
platform.system() == "Windows", reason="Memray doesn't work on Windows."
18-
)
19-
@pytest.mark.skipif(
20-
os.environ.get("GITHUB_ACTIONS", "") == "true",
21-
reason="Memory usage in actions was not being predictable.",
22-
)
23-
@pytest.mark.parametrize("denominator", [2, 0])
24-
@pytest.mark.limit_memory("10 MB")
25-
def test_repeated_calls_do_not_accumulate_memory(self, denominator):
26-
calc = example.calculator.Calculator(1, denominator)
27-
for _ in range(10000):
28-
with contextlib.suppress(ZeroDivisionError):
29-
calc.divide()
30-
3112
@pytest.mark.parametrize("denominator", [2, 0])
3213
def test_repeated_calls_do_not_accumulate_loggers(self, denominator):
3314
calc = example.calculator.Calculator(1, denominator)

0 commit comments

Comments
 (0)