Mpaa added a comment.

I think it could be how results are presented.
See difference between py2 and py3.
Maybe the "During handling of the above exception, another exception occurred" is not shown in the logs.

user@pc:~/python/core$py27 -m unittest tests.site_tests.SearchTestCase.test_search_where_title
tests: max_retries reduced from 15 to 1
WARNING: pywikibot/tools/__init__.py:1458: DeprecationWarning: where='title' is deprecated; use searchstring='intitle:wiki' instead.
  return obj(*__args, **__kw)

F
======================================================================
FAIL: test_search_where_title (tests.site_tests.SearchTestCase)
Test site.search() method with 'where' parameter set to title.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/site_tests.py", line 1495, in test_search_where_title
    hit.getReferences(redirectsOnly=True)))
AssertionError: False is not true

----------------------------------------------------------------------
Ran 1 test in 1.518s

FAILED (failures=1)



user@pc:~/python/core$py36 -m unittest tests.site_tests.SearchTestCase.test_search_where_title
tests: max_retries reduced from 15 to 1
WARNING: /home/user/python/core/pywikibot/tools/__init__.py:1458: DeprecationWarning: where='title' is deprecated; use searchstring='intitle:wiki' instead.
  return obj(*__args, **__kw)

F
======================================================================
FAIL: test_search_where_title (tests.site_tests.SearchTestCase)
Test site.search() method with 'where' parameter set to title.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/user/python/core/tests/site_tests.py", line 1492, in test_search_where_title
    self.assertIn('wiki', 'some text')
AssertionError: 'wiki' not found in 'some text'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/python/core/tests/site_tests.py", line 1495, in test_search_where_title
    hit.getReferences(redirectsOnly=True)))
AssertionError: False is not true

----------------------------------------------------------------------
Ran 1 test in 1.420s

FAILED (failures=1)

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

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

To: Mpaa
Cc: Mpaa, 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