Xqt created this task.
Xqt added a project: Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **List of steps to reproduce** :
  Run the following command with Python < 3.5.3:
  
    C:\pwb\GIT\core>py -3.5 pwb.py script_tests -v TestScriptHelp.test_basic
  
  **What happens?**:
  
    C:\pwb\GIT\core>py -3.5 pwb.py script_tests -v TestScriptHelp.test_basic
    tests: max_retries reduced from 15 to 1
    weblinkchecker depends on memento_client, which isn't available
    test_basic (__main__.TestScriptHelp)
    Test running basic -help. ... FAIL
    
    ======================================================================
    FAIL: test_basic (__main__.TestScriptHelp)
    Test running basic -help.
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File ".\tests\script_tests.py", line 244, in testScript
        stderr_other)
    AssertionError: 'Use -help for further information.' not found in 
['Traceback (most recent call last):', '  File "<string>", line 1, in 
<module>', '  File "C:\\pwb\\GIT\\core\\pwb.py", line 408, in main', '    
module)', '  File "C:\\pwb\\GIT\\core\\pwb.py", line 107, in run_python_file', 
'    main_mod.__dict__)', '  File ".\\scripts\\basic.py", line 174, in 
<module>', '    main()', '  File ".\\scripts\\basic.py", line 139, in main', '  
  local_args = pywikibot.handle_args(args)', '  File 
"C:\\pwb\\GIT\\core\\pywikibot\\bot.py", line 969, in handle_args', '    
init_handlers()', '  File 
"C:\\pwb\\GIT\\core\\pywikibot\\tools\\_deprecate.py", line 487, in wrapper', ' 
   return obj(*new_args, **new_kwargs)', '  File 
"C:\\pwb\\GIT\\core\\pywikibot\\bot.py", line 404, in init_handlers', '    
throttle = site.throttle  # initialize a Throttle obj', "AttributeError: 
'NoneType' object has no attribute 'throttle'", 'Error in 
atexit._run_exitfuncs:', 'Traceback (most recent call last):', '  File 
"C:\\pwb\\GIT\\core\\pywikibot\\__init__.py", line 1298, in _flush', "    
debug('_flush() called', _logger)", '  File 
"C:\\pwb\\GIT\\core\\pywikibot\\logging.py", line 210, in debug', '    
logoutput(text, decoder, newline, DEBUG, layer, **kwargs)', '  File 
"C:\\pwb\\GIT\\core\\pywikibot\\logging.py", line 76, in logoutput', '    
_init()', '  File "C:\\pwb\\GIT\\core\\pywikibot\\logging.py", line 35, in 
_init', '    init_routine()', '  File 
"C:\\pwb\\GIT\\core\\pywikibot\\tools\\_deprecate.py", line 487, in wrapper', ' 
   return obj(*new_args, **new_kwargs)', '  File 
"C:\\pwb\\GIT\\core\\pywikibot\\bot.py", line 404, in init_handlers', '    
throttle = site.throttle  # initialize a Throttle obj', "AttributeError: 
'NoneType' object has no attribute 'throttle'", "CRITICAL: Exiting due to 
uncaught exception <class 'AttributeError'>"]
    
    ----------------------------------------------------------------------
    Ran 1 test in 0.701s
    
    FAILED (failures=1)
    
    C:\pwb\GIT\core>
  
  **What should have happened instead?**:
  Test should pass
  
  **Software version**:
  
    C:\pwb\GIT\core>py -3.5 pwb.py version
    Pywikibot: [ssh] pywikibot-core (a737efa, g15337, 2021/08/17, 15:43:12, 
OUTDATED)
    Release version: 6.6.0.dev0
    setuptools version: 20.8.1
    mwparserfromhell version: 0.6.2
    wikitextparser version: n/a
    requests version: 2.25.1
      cacerts: C:\Python35\lib\site-packages\certifi\cacert.pem
        certificate test: ok
    Python: 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 
bit (AMD64)]
    PYWIKIBOT_DIR: Not set
    PYWIKIBOT_DIR_PWB:
    PYWIKIBOT_NO_USER_CONFIG: Not set
    Config base dir: C:\pwb\GIT\core

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

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

To: Xqt
Cc: Aklapper, pywikibot-bugs-list, atagar, Xqt
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to