jenkins-bot has submitted this change and it was merged.
Change subject: [IMPROV] tests: More information on intersect fail
......................................................................
[IMPROV] tests: More information on intersect fail
Instead of just comparing the lengths it should also tell which items
are missing/duplicates.
Change-Id: I2d8b60749f0c25b036139237effbc84d05d4d766
---
M tests/thread_tests.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
XZise: Looks good to me, but someone else must approve
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/thread_tests.py b/tests/thread_tests.py
index 79a67a4..581aab0 100644
--- a/tests/thread_tests.py
+++ b/tests/thread_tests.py
@@ -48,7 +48,7 @@
result = list(intersect_generators(datasets))
- self.assertEqual(len(set(result)), len(result))
+ self.assertCountEqual(set(result), result)
self.assertCountEqual(result, set_result)
--
To view, visit
https://gerrit.wikimedia.org/r/200309
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2d8b60749f0c25b036139237effbc84d05d4d766
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>