VcamX added a comment. What happened on Python 2.7.0 is so weird. https://github.com/wikimedia/pywikibot-core/blob/master/tests/namespace_tests.py#L222
self.assertEqual(Namespace.resolve([6]), [file_ns]) The first argument is what Namespace.resolve([6]) returns, that's a list only containing a Namespace object. The second argument is a list only containing `file_ns`, that's also a Namespace object. These two object should be equal: `__eq__` of `Namespace`: https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/site.py#L332 `[file_ns]`: https://ci.appveyor.com/project/VcamX/pywikibot-core/build/1.0.96#L4553 `Namespace.resolve([6])`: https://ci.appveyor.com/project/VcamX/pywikibot-core/build/1.0.94#L4516 If we just test `self.assertEqual(Namespace.resolve([6])[0], file_ns)`, that will be fine. If we wrap them inside a list, they're not equal. TASK DETAIL https://phabricator.wikimedia.org/T106512 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: VcamX Cc: gerritbot, VcamX, Aklapper, jayvdb, pywikibot-bugs-list, Malyacko, P.Copp _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
