From 05ad01c8d81ca09191fb7954602e6843d11a9c6c Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Wed, 26 May 2021 23:36:42 +0200 Subject: [PATCH] Make test_resource_limit() less fragile --- ixmp/tests/test_testing.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ixmp/tests/test_testing.py b/ixmp/tests/test_testing.py index 3d8f7cc06..2f012030c 100644 --- a/ixmp/tests/test_testing.py +++ b/ixmp/tests/test_testing.py @@ -13,12 +13,13 @@ def test_resource_limit(resource_limit, test_mp): """Exercise :func:`memory_usage` and :func:`resource_limit`.""" # TODO expand to cover other missed lines in those functions - info0 = memory_usage("setup") + memory_usage("setup") s = ixmp.TimeSeries(test_mp, **models["h2g2"], version="new") - info1 = memory_usage("1 TimeSeries") + memory_usage("1 TimeSeries") del s - assert info0.python <= info1.python + # commented: this is nondeterministic, not always true + # assert info0.python <= info1.python