File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff line change 22
33import contextlib
44import logging
5- import os
6- import platform
75
86import pytest
97
10- import example .api
118import example .calculator
12- import example .default
139
1410
1511class 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 )
You can’t perform that action at this time.
0 commit comments