Dalba triaged this task as "High" priority.
Dalba added a project: Pywikibot-tests.
Dalba added a comment.

Some Travis-CI jobs are have strated to fail because of the new deprecation warning:
https://travis-ci.org/wikimedia/pywikibot/jobs/411423632#L1953

=================================== FAILURES ===================================
_____________________ TestScriptSimulate.test_editarticle ______________________
self = <tests.script_tests.TestScriptSimulate testMethod=test_editarticle>
    def testScript(self):
        global_args = 'Global arguments available for all'
    
        cmd = [script_name]
    
        if args:
            cmd += args
    
        data_in = script_input.get(script_name)
    
        timeout = 0
        if is_autorun:
            timeout = 5
    
        if self._results and script_name in self._results:
            error = self._results[script_name]
            if isinstance(error, StringTypes):
                stdout = None
            else:
                stdout, error = error
        else:
            stdout = None
            error = None
    
        test_overrides = {}
        if not hasattr(self, 'net') or not self.net:
            test_overrides['pywikibot.Site'] = 'None'
    
        result = execute_pwb(cmd, data_in, timeout=timeout,
                             error=error, overrides=test_overrides)
    
        stderr = result['stderr'].splitlines()
        stderr_sleep = [l for l in stderr
                        if l.startswith('Sleeping for ')]
        stderr_other = [l for l in stderr
                        if not l.startswith('Sleeping for ')]
        if stderr_sleep:
            unittest_print('\n'.join(stderr_sleep))
    
        if result['exit_code'] == -9:
            unittest_print(' killed', end='  ')
    
        if error:
            self.assertIn(error, result['stderr'])
    
            exit_codes = [0, 1, 2, -9]
        elif not is_autorun:
            if stderr_other == []:
                stderr_other = None
            if stderr_other is not None:
                self.assertIn('Use -help for further information.',
                              stderr_other)
                self.assertNotIn('-help', args)
            else:
                self.assertIn(global_args, result['stdout'])
    
            exit_codes = [0]
        else:
            # auto-run
            exit_codes = [0, -9]
    
            if (not result['stdout'] and not result['stderr']):
                unittest_print(' auto-run script unresponsive after '
                               '%d seconds' % timeout, end=' ')
            elif 'SIMULATION: edit action blocked' in result['stderr']:
                unittest_print(' auto-run script simulated edit '
                               'blocked', end='  ')
            else:
                unittest_print(
                    ' auto-run script stderr within %d seconds: %r'
                    % (timeout, result['stderr']), end='  ')
    
        self.assertNotIn('Traceback (most recent call last)',
                         result['stderr'])
>       self.assertNotIn('deprecated', result['stderr'].lower())
E       AssertionError: 'deprecated' unexpectedly found in 'page to edit: warning: api warning (main): subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of api deprecations and breaking changes. use [[special:apifeatureusage]] to see usage of deprecated features by your application.\nwarning: api warning (revisions): because "rvslots" was not specified, a legacy format has been used for the output. this format is deprecated, and in the future the new format will always be used.\nnothing changed\n'

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

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

To: Dalba
Cc: Dalba, Lofhi, Aklapper, pywikibot-bugs-list, JJMC89, Tbscho, MayS, Mdupont, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to