XZise created this task.
XZise claimed this task.
XZise added a subscriber: XZise.
XZise added projects: pywikibot-core, Pywikibot-tests.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
The tests on appveyor are failing because `APISite.logpages()` returns the
timestamp as an int and we test if it's an int. But it seems that it's actually
using long:
```
======================================================================
FAIL: test_logpages (tests.site_tests.TestLogPages)
Test the deprecated site.logpages() method.
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\projects\pywikibot-core\tests\site_tests.py", line 1065, in
test_logpages
self.assertIsInstance(entry[2], int)
AssertionError: 20150919141344L is not an instance of <type 'int'>
```
https://ci.appveyor.com/project/wikimedia/pywikibot-core/build/1.0.404/job/7um2h6al2gixoidu#L3813
I guess this is a Python 2 specific error, as Python 3 doesn't has a
dedicated long type. From the test before Python 3.3 didn't fail:
https://ci.appveyor.com/project/wikimedia/pywikibot-core/build/1.0.403/job/qu17f7ry0nq626ro#L3604
TASK DETAIL
https://phabricator.wikimedia.org/T113146
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: Aklapper, pywikibot-bugs-list, XZise, jayvdb
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs