From: Mike Bayer Date: Tue, 29 Sep 2020 19:44:33 +0000 (-0400) Subject: bump variance on test_string, test_unicode X-Git-Tag: rel_1_3_20~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2080d87acbb21bbdba67c41a0c1ef869a27163be;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git bump variance on test_string, test_unicode a recent rerun of profiles added more profiling data that's failing over small differences. 15% variance is fine for these tests that are looking for thousands of encode calls. Change-Id: I33dac346b2ff07f86b4bc278a7309ca9b7efbaab (cherry picked from commit 147f0969301184b952366f39195caaabe6d63dbf) --- diff --git a/test/aaa_profiling/test_resultset.py b/test/aaa_profiling/test_resultset.py index 39fbc67574..704180ea1c 100644 --- a/test/aaa_profiling/test_resultset.py +++ b/test/aaa_profiling/test_resultset.py @@ -82,11 +82,11 @@ class ResultSetTest(fixtures.TestBase, AssertsExecutionResults): def teardown(self): metadata.drop_all() - @profiling.function_call_count() + @profiling.function_call_count(variance=0.15) def test_string(self): [tuple(row) for row in t.select().execute().fetchall()] - @profiling.function_call_count() + @profiling.function_call_count(variance=0.15) def test_unicode(self): [tuple(row) for row in t2.select().execute().fetchall()]