diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-01-05 12:21:14 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-01-05 12:21:14 -0500 |
commit | 8257b3a0173b4ee2665f70c7e068497c462bd5df (patch) | |
tree | f5c665ef63b96ee7788ca2306a04a41398530a11 /lib/sqlalchemy/testing/profiling.py | |
parent | a3241649332e988bd46c104e56f689dc03a2122d (diff) | |
download | sqlalchemy-8257b3a0173b4ee2665f70c7e068497c462bd5df.tar.gz |
- more callcounts
- add the platform key to the error output
Diffstat (limited to 'lib/sqlalchemy/testing/profiling.py')
-rw-r--r-- | lib/sqlalchemy/testing/profiling.py | 6 |
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)) |