Skip to content

Commit fbdbbbd

Browse files
committed
Fix the test suite
Seems that one of the latest memray versions has broken the test suite because we don't track Cython calls anymore. Fix this by not matching the Cython file but just the function itself.
1 parent d913c9d commit fbdbbbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_pytest_memray.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ def test_bar():
181181

182182
assert "results for test_memray_report.py::test_foo" in output
183183
assert "Total memory allocated: 2.0KiB" in output
184-
assert "valloc:src/memray/_memray_test_utils.pyx" in output
184+
assert "valloc:" in output
185185
assert "-> 2.0KiB" in output
186186

187187
assert "results for test_memray_report.py::test_bar" in output
188188
assert "Total memory allocated: 1.0KiB" in output
189-
assert "valloc:src/memray/_memray_test_utils.pyx" in output
189+
assert "valloc:" in output
190190
assert "-> 1.0KiB" in output
191191

192192

@@ -223,12 +223,12 @@ def test_bar():
223223

224224
assert "results for test_memray_report.py::test_foo" not in output
225225
assert "Total memory allocated: 2.0KiB" not in output
226-
assert "valloc:src/memray/_memray.pyx" not in output
226+
assert "valloc:" not in output
227227
assert "-> 2.0KiB" not in output
228228

229229
assert "results for test_memray_report.py::test_bar" not in output
230230
assert "Total memory allocated: 1.0KiB" not in output
231-
assert "valloc:src/memray/_memray.pyx" not in output
231+
assert "valloc:" not in output
232232
assert "-> 1.0KiB" not in output
233233

234234

0 commit comments

Comments
 (0)