Fix for python3
This commit is contained in:
parent
a1e1b32fa9
commit
01db5db7b4
@ -151,8 +151,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()
|
||||
@ -184,5 +182,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()
|
||||
|
Loading…
Reference in New Issue
Block a user