Dalba added a comment.

This is not resolved:

https://travis-ci.org/wikimedia/pywikibot-core/jobs/287625444#L4382

=================================== FAILURES ===================================

____________________ SearchTestCase.test_search_where_title ____________________

self = <tests.site_tests.SearchTestCase testMethod=test_search_where_title>

    def test_search_where_title(self):

        """Test site.search() method with 'where' parameter set to title."""

        try:

            for hit in self.site.search('wiki', namespaces=0, total=10,

                                        get_redirects=True, where='title'):

                self.assertIsInstance(hit, pywikibot.Page)

                self.assertEqual(hit.namespace(), 0)

                try:

>                   self.assertIn('wiki', hit.title().lower())

E                   AssertionError: 'wiki' not found in '3d printed firearms'

I don't understand why this is. The assertion AssertionError should have been handled by the except clause.


TASK DETAIL
https://phabricator.wikimedia.org/T176297

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dalba
Cc: gerritbot, Aklapper, pywikibot-bugs-list, Dalba, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Magul, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to