Xqt added a comment.

Seems it depends on python or requests vrsion:

C:\pwb\GIT\core>py -2 pwb.py isbn_tests -v TestIsbnWikibaseBot.test_isbn_format
tests: max_retries reduced from 15 to 1
test_isbn_format (__main__.TestIsbnWikibaseBot)
Test format using the bot and wikibase. ... Assuming that ISBN-10 property is P3
60.
Assuming that ISBN-13 property is P366.
WARNING: IsbnWikibaseBot.__init__ set the Bot.site property; this is only needed
 when the Bot accesses many sites.
Retrieving 1 pages from wikidata:test.


>>> Q943 <<<
Changing P360 (ISBN 097522980x --> 0-9752298-0-X)
{
    "claims": {
        "P360": [
            {
                "id": "Q943$fe3a849c-4c9f-2037-ae29-658443937c01",
                "mainsnak": {
                    "datatype": "string",
                    "datavalue": {
                        "type": "string",
                        "value": "0-9752298-0-X"
                    },
                    "property": "P360",
                    "snaktype": "value"
                },
                "rank": "normal",
                "type": "statement"
            }
        ]
    }
}
Change summary: Bot: Formatting ISBN

1 pages read
1 pages written
Execution time: 0 seconds
Read operation time: 0 seconds
Write operation time: 0 seconds
Script terminated successfully.
ok

----------------------------------------------------------------------
Ran 1 test in 3.861s

OK

C:\pwb\GIT\core>
C:\pwb\GIT\core>py -2 pwb.py version
Pywikibot: [ssh] pywikibot-core (1de36fc, g10382, 2018/11/02, 11:44:44, ok)
Release version: 3.1.dev0
requests version: 2.9.1
  cacerts: C:\Python27\lib\site-packages\certifi\cacert.pem
    certificate test: ok
Python: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit
(Intel)]
PYWIKIBOT_DIR: Not set
PYWIKIBOT_DIR_PWB:
PYWIKIBOT_NO_USER_CONFIG: Not set
Config base dir: C:\pwb\GIT\core

C:\pwb\GIT\core>

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

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

To: Xqt
Cc: Xqt, Framawiki, Aklapper, pywikibot-bugs-list, Dalba, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to