________ TestLoadPagesFromPageids.test_load_from_pageids_pipe_separated ________
self = <tests.site_tests.TestLoadPagesFromPageids testMethod=test_load_from_pageids_pipe_separated>
def test_load_from_pageids_pipe_separated(self):
"""Test loading from comma-separated pageids."""
pageids = '|'.join(str(page._pageid) for page in self.links)
gen = self.site.load_pages_from_pageids(pageids)
> for count, page in enumerate(gen, start=1):
tests/site_tests.py:2568:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pywikibot/site.py:3148: in load_pages_from_pageids
for sublist in itergroup(filter_unique(gen), groupsize):
pywikibot/tools/__init__.py:637: in itergroup
for item in iterable:
pywikibot/tools/__init__.py:876: in filter_unique
for item in iterable:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.0 = <list_iterator object at 0x7f12de6724a8>
> gen = (str(int(p)) for p in pageids if int(p) > 0)
E ValueError: invalid literal for int() with base 10: ''
pywikibot/site.py:3139: ValueErrorSee: https://travis-ci.org/wikimedia/pywikibot-core/jobs/184925687#L1902