From b8e5eacbbe4fcdf299705fad8f5bc70da05c48d9 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sat, 29 Jan 2022 21:49:59 +0000 Subject: [PATCH] Remove debug sattements in unit tests --- gramps/gen/filters/rules/test/person_rules_test.py | 8 ++++---- gramps/plugins/test/db_undo_and_signals_test.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gramps/gen/filters/rules/test/person_rules_test.py b/gramps/gen/filters/rules/test/person_rules_test.py index 2ee600a6c..beb982f22 100644 --- a/gramps/gen/filters/rules/test/person_rules_test.py +++ b/gramps/gen/filters/rules/test/person_rules_test.py @@ -98,10 +98,10 @@ class BaseTest(unittest.TestCase): filter_.set_invert(invert) stime = perf_counter() results = filter_.apply(self.db) - if __debug__: - frame = inspect.currentframe() - rulename = frame.f_back.f_code.co_name - print("%s: %.2f\n" % (rulename, perf_counter() - stime)) + # if __debug__: + # frame = inspect.currentframe() + # rulename = frame.f_back.f_code.co_name + # print("%s: %.2f\n" % (rulename, perf_counter() - stime)) return set(results) def test_Complex_1(self): diff --git a/gramps/plugins/test/db_undo_and_signals_test.py b/gramps/plugins/test/db_undo_and_signals_test.py index 812d3d29f..51d37318c 100644 --- a/gramps/plugins/test/db_undo_and_signals_test.py +++ b/gramps/plugins/test/db_undo_and_signals_test.py @@ -132,7 +132,7 @@ class DbTestClassBase(object): self._log_sig("note-delete", args) def _log_sig(self, sig, args): - print("('%s', %s)," % (sig, args)) + # print("('%s', %s)," % (sig, args)) self.sigs.append((sig, args[0])) def _cm_pers_add(self, *args):