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

TASK DESCRIPTION
  `py -3.13 -m pwb api_tests -v 
TestPropertyGenerator.test_two_continuations_limited`
  
  leads to:
  
    tests: max_retries reduced from 15 to 3
    test_two_continuations_limited 
(__main__.TestPropertyGenerator.test_two_continuations_limited)
    Test PropertyGenerator with many limited props and continuations. ... ERROR
     25.881s
    ======================================================================
    ERROR: test_two_continuations_limited 
(__main__.TestPropertyGenerator.test_two_continuations_limited)
    Test PropertyGenerator with many limited props and continuations.
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "C:\Python\Python313\Lib\site-packages\requests\models.py", line 
976, in json
        return complexjson.loads(self.text, **kwargs)
               ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
      File "C:\Python\Python313\Lib\json\__init__.py", line 346, in loads
        return _default_decoder.decode(s)
               ~~~~~~~~~~~~~~~~~~~~~~~^^^
      File "C:\Python\Python313\Lib\json\decoder.py", line 344, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                   ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Python\Python313\Lib\json\decoder.py", line 362, in raw_decode
        raise JSONDecodeError("Expecting value", s, err.value) from None
    json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 761, in 
_json_loads
        result = response.json()
      File "C:\Python\Python313\Lib\site-packages\requests\models.py", line 
980, in json
        raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
    requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 
0)
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\pwb\GIT\core\tests\api_tests.py", line 575, in 
test_two_continuations_limited
        for count, pagedata in enumerate(gen, start=1):
                               ~~~~~~~~~^^^^^^^^^^^^^^
      File "<frozen _collections_abc>", line 360, in __next__
      File "C:\pwb\GIT\core\pywikibot\tools\collections.py", line 280, in send
        return next(self._started_gen)
      File "C:\pwb\GIT\core\pywikibot\data\api\_generators.py", line 896, in 
generator
        yield from super().generator
      File "C:\pwb\GIT\core\pywikibot\data\api\_generators.py", line 699, in 
generator
        self.data = self.request.submit()
                    ~~~~~~~~~~~~~~~~~~~^^
      File "C:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 1055, in 
submit
        result = self._json_loads(response)
      File "C:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 802, in 
_json_loads
        if value.isdigit():
           ^^^^^^^^^^^^^
    AttributeError: 'int' object has no attribute 'isdigit'
    
    ----------------------------------------------------------------------
    Ran 1 test in 27.106s
    
    FAILED (errors=1)

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

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

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to