Update web-platform-tests to revision 3bbb55915a04548e70c63b7c143a83e0e9d3c5e7

This commit is contained in:
WPT Sync Bot 2019-04-01 22:33:23 -04:00
parent 3340214a29
commit b55cc798b6
100 changed files with 2036 additions and 3665 deletions

View file

@ -15,7 +15,7 @@ try:
except ImportError:
fast_json = json
CURRENT_VERSION = 5
CURRENT_VERSION = 6
class ManifestError(Exception):
@ -68,8 +68,8 @@ class TypeData(object):
self.load(key)
return self.data[key]
def __bool__(self):
return bool(self.data)
def __nonzero__(self):
return bool(self.data) or bool(self.json_data)
def __len__(self):
rv = len(self.data)
@ -86,6 +86,10 @@ class TypeData(object):
raise KeyError
def __setitem__(self, key, value):
if self.json_data is not None:
path = from_os_path(key)
if path in self.json_data:
del self.json_data[path]
self.data[key] = value
def __contains__(self, key):