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

TASK DESCRIPTION
  Tests with Python 3.8 fails fakeuseragent 2.0
  
    ======================================================================
    ERROR: tests (unittest.loader._FailedTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/runner/work/pywikibot/pywikibot/tests/__init__.py", line 262, 
in load_tests
        return collector(loader)
      File "/home/runner/work/pywikibot/pywikibot/tests/__init__.py", line 253, 
in collector
        tests = loader.loadTestsFromNames(test_list)
      File 
"/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/unittest/loader.py", line 
220, in loadTestsFromNames
        suites = [self.loadTestsFromName(name, module) for name in names]
      File 
"/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/unittest/loader.py", line 
220, in <listcomp>
        suites = [self.loadTestsFromName(name, module) for name in names]
      File 
"/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/unittest/loader.py", line 
154, in loadTestsFromName
        module = __import__(module_name)
      File "/home/runner/work/pywikibot/pywikibot/tests/http_tests.py", line 
245, in <module>
        class LiveFakeUserAgentTestCase(HttpbinTestCase):
      File "/home/runner/work/pywikibot/pywikibot/tests/aspects.py", line 275, 
in test_requirement
        __import__(required_module, globals(), locals(), [], 0)
      File 
"/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/fake_useragent/__init__.py",
 line 4, in <module>
        from fake_useragent.fake import FakeUserAgent, UserAgent
      File 
"/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/fake_useragent/fake.py",
 line 8, in <module>
        from fake_useragent.utils import BrowserUserAgentData, load
      File 
"/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/fake_useragent/utils.py",
 line 42, in <module>
        def load() -> list[BrowserUserAgentData]:
    TypeError: 'type' object is not subscriptable
    
    ----------------------------------------------------------------------

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

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

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor, Wenyi, Tbscho, 
MayS, Mdupont, JJMC89, Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx, 
jayvdb, Masti, Alchimista, Krenair
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to