]> 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:45:53 +0000 (15:45 -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
(cherry picked from commit 147f0969301184b952366f39195caaabe6d63dbf)

test/aaa_profiling/test_resultset.py

index 39fbc67574b94a7f54883a8f2134d153ff6b9454..704180ea1c3e8872de1b8b263f7e8d720824c3ed 100644 (file)
@@ -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()]