mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Update web-platform-tests to revision 4adce83d1f2b08fa2e92427c4687d0cf535aee53
This commit is contained in:
parent
d3763452b5
commit
3e4ec1724a
102 changed files with 3019 additions and 1309 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue