jenkins-bot submitted this change.
[tests] Not necessary to use lambda within tk_tests.py
Change-Id: Iada7ce3faa0e97ef90c7c5af3d09f1ace0093055
---
M tests/tk_tests.py
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/tk_tests.py b/tests/tk_tests.py
index 47a1071..9da6915 100755
--- a/tests/tk_tests.py
+++ b/tests/tk_tests.py
@@ -47,7 +47,7 @@
filename = image.rsplit('/', 1)[1]
box = Tkdialog(desc, image, filename)
# skip after ~100 ms
- box.root.after(100, lambda: box.skip_file())
+ box.root.after(100, box.skip_file)
description, name, skip = box.show_dialog()
self.assertEqual(description, desc)
self.assertEqual(name, filename)
@@ -66,7 +66,7 @@
page = pywikibot.Page(self.site, 'Main Page')
content = page.get()
myapp = EditBoxWindow(root)
- root.after(100, lambda: myapp.pressedOK())
+ root.after(100, myapp.pressedOK)
text = myapp.edit(content, highlight=page.title())
self.assertIsNotNone(text)
self.assertIn('Main Page', text)
To view, visit change 831182. To unsubscribe, or for help writing mail filters, visit settings.