jayvdb added a comment.

  I can reproduce with
  
    $ cat user-config.py
    import os
    
    usernames['wikipedia']['en'] = 'JVbot-test'
    usernames['wikisource']['en'] = 'JVbot-test'
    usernames['wikipedia']['test'] = 'JVbot-test'
    usernames['wikidata']['test'] = 'JVbot-test'
    usernames['test']['test'] = 'JVbot-test'
    
    password_file = os.path.expanduser('~/.pywikibot/passwordfile')
    $ python -m unittest -v tests.script_tests.TestScriptHelp.test_add_text
    No handlers could be found for logger "pywiki"
    tests: max_retries reduced from 25 to 1
    script_wui depends on lua, which isnt available:
    No module named lua
    test_add_text (tests.script_tests.TestScriptHelp)
    Test running add_text -help. ... FAIL
    
    ======================================================================
    FAIL: test_add_text (tests.script_tests.TestScriptHelp)
    Test running add_text -help.
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "tests/script_tests.py", line 296, in testScript
        stderr_other)
    AssertionError: u'Use -help for further information.' not found in [u'No 
handlers could be found for logger "pywiki"']
    
    ----------------------------------------------------------------------
    Ran 1 test in 8.688s
    
    FAILED (failures=1)
  
  Now the interesting part ... the revert doesnt work for me (but it clearly 
fixes Travis builds), and the result array has changed to add an extra element 
u''.
  
    $ git review -d 275776
    Downloading refs/changes/76/275776/2 from gerrit
    Switched to branch "review/john_vandenberg/handle_args"
    $ python -m unittest -v tests.script_tests.TestScriptHelp.test_add_text
    No handlers could be found for logger "pywiki"
    tests: max_retries reduced from 25 to 1
    script_wui depends on lua, which isnt available:
    No module named lua
    test_add_text (tests.script_tests.TestScriptHelp)
    Test running add_text -help. ... FAIL
    
    ======================================================================
    FAIL: test_add_text (tests.script_tests.TestScriptHelp)
    Test running add_text -help.
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "tests/script_tests.py", line 295, in testScript
        stderr_other)
    AssertionError: u'Use -help for further information.' not found in [u'No 
handlers could be found for logger "pywiki"', u'']
    
    ----------------------------------------------------------------------
    Ran 1 test in 8.679s
    
    FAILED (failures=1)
  
  and on Python 3.4 with the revert patch
  
    $ python3.4 -m unittest -v tests.script_tests.TestScriptHelp.test_add_text
    family and mylang are not set.
    Defaulting to family='test' and mylang='test'.
    tests: max_retries reduced from 25 to 1
    match_images depends on PIL.ImageTk, which isnt available:
    No module named 'PIL.ImageTk'
    script_wui depends on crontab, which isnt available:
    No module named 'crontab'
    flickrripper depends on flickrapi, which isnt available:
    No module named 'flickrapi'
    states_redirect depends on pycountry, which isnt available:
    No module named 'pycountry'
    imageharvest depends on BeautifulSoup, which isnt available:
    No module named 'BeautifulSoup'
    panoramiopicker depends on BeautifulSoup, which isnt available:
    No module named 'BeautifulSoup'
    patrol depends on mwparserfromhell, which isnt available:
    No module named 'mwparserfromhell'
    test_add_text (tests.script_tests.TestScriptHelp)
    Test running add_text -help. ... FAIL
    
    ======================================================================
    FAIL: test_add_text (tests.script_tests.TestScriptHelp)
    Test running add_text -help.
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/.../tests/script_tests.py", line 295, in testScript
        stderr_other)
    AssertionError: 'Use -help for further information.' not found in ['family 
and mylang are not set.', "Defaulting to family='test' and mylang='test'.", '']
    
    ----------------------------------------------------------------------
    Ran 1 test in 3.297s
    
    FAILED (failures=1)
  
  It is not finding my user-config.py

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

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

To: jayvdb
Cc: gerritbot, jayvdb, Lokal_Profil, Aklapper, StudiesWorld, Xqt, 
pywikibot-bugs-list, Lewizho99



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to