summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/profiling.py
diff options
context:
space:
mode:
authorSławek Ehlert <slafs@op.pl>2015-01-27 22:04:38 +0100
committerSławek Ehlert <slafs@op.pl>2015-01-27 22:04:38 +0100
commit57b2bd5dcba6140b511c898c0f682234f13d5c51 (patch)
treea0899b2a35d27e177001b163054c3c9a8f7f1c06 /lib/sqlalchemy/testing/profiling.py
parent6a1f16d09958e549502a0991890d64964c71b357 (diff)
parent8aaa8dd6bdfb85fa481efa3115b9080d935d344c (diff)
downloadsqlalchemy-pr/152.tar.gz
Merge branch 'master' into oracle-servicename-optionpr/152
Diffstat (limited to 'lib/sqlalchemy/testing/profiling.py')
-rw-r--r--lib/sqlalchemy/testing/profiling.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/profiling.py b/lib/sqlalchemy/testing/profiling.py
index 671bbe32d..57308925e 100644
--- a/lib/sqlalchemy/testing/profiling.py
+++ b/lib/sqlalchemy/testing/profiling.py
@@ -226,6 +226,7 @@ def count_functions(variance=0.05):
callcount = stats.total_calls
expected = _profile_stats.result(callcount)
+
if expected is None:
expected_count = None
else:
@@ -249,10 +250,11 @@ def count_functions(variance=0.05):
else:
raise AssertionError(
"Adjusted function call count %s not within %s%% "
- "of expected %s. Rerun with --write-profiles to "
+ "of expected %s, platform %s. Rerun with "
+ "--write-profiles to "
"regenerate this callcount."
% (
callcount, (variance * 100),
- expected_count))
+ expected_count, _profile_stats.platform_key))