Update web-platform-tests to revision 4adce83d1f2b08fa2e92427c4687d0cf535aee53

This commit is contained in:
WPT Sync Bot 2019-01-08 20:47:25 -05:00
parent d3763452b5
commit 3e4ec1724a
102 changed files with 3019 additions and 1309 deletions

View file

@ -1,6 +1,7 @@
import json
import os
import pickle
import platform
import os
import pytest
@ -75,3 +76,11 @@ def test_pickle():
# Ensure that the config object can be pickled
with ConfigBuilder() as c:
pickle.dumps(c)
def test_config_json_length():
# we serialize the config as JSON for pytestrunner and put it in an env
# variable, which on Windows must have a length <= 0x7FFF (int16)
with ConfigBuilder() as c:
data = json.dumps(c.as_dict())
assert len(data) <= 0x7FFF