From 6186cb465d8320b1d945a26231943f9235419105 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Sun, 3 Mar 2019 10:33:49 -0500 Subject: [PATCH] Force a pickling protocol that will accept certain awkward classes. --- tests/wpt/metadata/MANIFEST.json | 2 +- .../tools/wptrunner/wptrunner/update/state.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index 6ba0f9387ea..8e152dc2989 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -683466,7 +683466,7 @@ "support" ], "tools/wptrunner/wptrunner/update/state.py": [ - "dc459da7e2e5a6b5dfd088b711e4fa9c7d693af9", + "3a97618effdbf13c22ac422a6f5e4bbae65643bd", "support" ], "tools/wptrunner/wptrunner/update/sync.py": [ diff --git a/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/update/state.py b/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/update/state.py index dc459da7e2e..3a97618effd 100644 --- a/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/update/state.py +++ b/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/update/state.py @@ -69,7 +69,7 @@ class State(object): def save(self): """Write the state to disk""" with open(self.filename, "w") as f: - pickle.dump(self, f) + pickle.dump(self, f, 2) def is_empty(self): return len(self._data) == 1 and self._data[0] == {}