]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
bump variance on test_string, test_unicode
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 29 Sep 2020 19:44:33 +0000 (15:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 29 Sep 2020 19:44:33 +0000 (15:44 -0400)
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

test/aaa_profiling/test_resultset.py

index de3683430edb459e3671304550ca8d05b829e8a6..7188c412505831366ce406df5a910f71e7c2ec42 100644 (file)
@@ -84,14 +84,14 @@ 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):
         with testing.db.connect().execution_options(
             compiled_cache=None
         ) as conn:
             [tuple(row) for row in conn.execute(t.select()).fetchall()]
 
-    @profiling.function_call_count()
+    @profiling.function_call_count(variance=0.15)
     def test_unicode(self):
         with testing.db.connect().execution_options(
             compiled_cache=None