jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/831182 )

Change subject: [tests] Not necessary to use lambda within tk_tests.py
......................................................................

[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(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



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 https://gerrit.wikimedia.org/r/c/pywikibot/core/+/831182
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Iada7ce3faa0e97ef90c7c5af3d09f1ace0093055
Gerrit-Change-Number: 831182
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to