summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/profiling.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/testing/profiling.py')
-rw-r--r--lib/sqlalchemy/testing/profiling.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/testing/profiling.py b/lib/sqlalchemy/testing/profiling.py
index 7672bcde5..dfc3f28f6 100644
--- a/lib/sqlalchemy/testing/profiling.py
+++ b/lib/sqlalchemy/testing/profiling.py
@@ -195,7 +195,7 @@ class ProfileStatsFile:
def _read(self):
try:
profile_f = open(self.fname)
- except IOError:
+ except OSError:
return
for lineno, line in enumerate(profile_f):
line = line.strip()
@@ -212,7 +212,7 @@ class ProfileStatsFile:
profile_f.close()
def _write(self):
- print(("Writing profile file %s" % self.fname))
+ print("Writing profile file %s" % self.fname)
profile_f = open(self.fname, "w")
profile_f.write(self._header())
for test_key in sorted(self.data):
@@ -293,7 +293,7 @@ def count_functions(variance=0.05):
else:
line_no, expected_count = expected
- print(("Pstats calls: %d Expected %s" % (callcount, expected_count)))
+ print("Pstats calls: %d Expected %s" % (callcount, expected_count))
stats.sort_stats(*re.split(r"[, ]", _profile_stats.sort))
stats.print_stats()
if _profile_stats.dump: