From a02f76c97fdb1fb1b69317790bf8dd3595156999 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 15 May 2014 17:46:10 +0100 Subject: [PATCH] Fix for python3 --- gramps/cli/test/user_test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gramps/cli/test/user_test.py b/gramps/cli/test/user_test.py index 6157c176e..9505355cd 100644 --- a/gramps/cli/test/user_test.py +++ b/gramps/cli/test/user_test.py @@ -153,8 +153,6 @@ class TestUser_quiet(unittest.TestCase): @unittest.skipUnless(MOCKING, "Requires unittest.mock to run") class TestUser_progress(unittest.TestCase): - _progress_begin_step_end = \ - TestUser_quiet.test_progress_can_begin_step_end.__func__ def setUp(self): self.user = user.User() @@ -186,5 +184,11 @@ class TestUser_progress(unittest.TestCase): pass self.assertTrue(MockEP.called) + def _progress_begin_step_end(self): + self.user.begin_progress("Foo", "Bar", 0) + for i in range(10): + self.user.step_progress() + self.user.end_progress() + if __name__ == "__main__": unittest.main()