The API [[https://www.wikidata.org/w/api.php?action=paraminfo&modules=edit|paraminfo list of values for the edit module]] has recently changed its list of available content formats. 'application/vnd.php.serialized' now appears as an edit module content format, but only on Wikibase repos as far as the pywikibot CI test suite can determine.
As seen on https://travis-ci.org/jayvdb/pywikibot-core/jobs/114591756
======================================================================
FAIL: Test content format.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/jayvdb/pywikibot-core/tests/paraminfo_tests.py", line 127, in test_content_format
self._check_param_values(self.site, 'edit', 'contentformat', base)
File "/home/travis/build/jayvdb/pywikibot-core/tests/paraminfo_tests.py", line 45, in _check_param_values
self.assertCountEqual(expected, values)
File "/home/travis/build/jayvdb/pywikibot-core/tests/aspects.py", line 96, in assertCountEqual
return self.assertItemsEqual(*args, **kwargs)
AssertionError: Sequences differ: [u'ap[14 chars]', u'text/css', u'text/javascript', u'text/pla[15 chars]iki'] != [u'ap[14 chars]', u'application/vnd.php.serialized', u'text/c[50 chars]iki']
First differing element 1:
text/css
application/vnd.php.serialized
Second sequence contains 1 additional elements.
First extra element 5:
text/x-wiki
[u'application/json',
+ u'application/vnd.php.serialized',
u'text/css',
u'text/javascript',
u'text/plain',
u'text/x-wiki']The pywikibot test can add 'application/vnd.php.serialized' to its expected list, but it doesnt always appear.
Ideally we work out why and when it appears, and verify it is indeed intentional that this change has occurred.