From 62a20edb8bb240ea51e48504713d1e0c340112de Mon Sep 17 00:00:00 2001 From: Alister Burt Date: Mon, 18 Nov 2024 14:24:58 -0800 Subject: [PATCH] relax requirements on writing speed test --- tests/test_parsing.py | 2 +- tests/test_writing.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_parsing.py b/tests/test_parsing.py index f3ae93b..bbe93fa 100644 --- a/tests/test_parsing.py +++ b/tests/test_parsing.py @@ -200,7 +200,7 @@ def test_parsing_speed(): remove_large_star_file() # Check that execution takes less than a second - assert end - start < 1.2 + assert end - start < 1.0 def test_two_single_line_loop_blocks(): diff --git a/tests/test_writing.py b/tests/test_writing.py index 8e0ee00..af7ca1c 100644 --- a/tests/test_writing.py +++ b/tests/test_writing.py @@ -93,6 +93,7 @@ def test_string_quoting_loop_datablock(quote_character, quote_all_strings, num_q s = StarParser(filename) assert df.equals(s.data_blocks[""]) + def test_writing_speed(): start = time.time() generate_large_star_file() @@ -100,7 +101,8 @@ def test_writing_speed(): remove_large_star_file() # Check that execution takes less than a second - assert end - start < 1 + # relaxed to 1.5s as runners appear to have become slower... + assert end - start < 1.5 @pytest.mark.parametrize("quote_character, quote_all_strings, num_quotes", [('"', False, 6),