Skip to content

Commit 7e0c0d3

Browse files
try different json?
1 parent d03e8f5 commit 7e0c0d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mpcontribs-lux/tests/projects/esoteric_ephemera/test_schemas.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Test schemas for user esoteric_ephemera."""
22

33
import gzip
4-
import json
4+
import orjson
55
from pathlib import Path
66

77
import numpy as np
@@ -14,9 +14,9 @@
1414
@pytest.fixture(scope="module")
1515
def task_doc(test_data_dir) -> TaskDoc:
1616
with gzip.open(
17-
test_data_dir / "by_user" / "esoteric_ephemera" / "r2scan_task.json.gz", "rt"
17+
test_data_dir / "by_user" / "esoteric_ephemera" / "r2scan_task.json.gz", "rb"
1818
) as f:
19-
return TaskDoc(**json.load(f))
19+
return TaskDoc(**orjson.loads(f.read()))
2020

2121

2222
def test_matpes_doc_from_task_doc(test_dir, task_doc):

0 commit comments

Comments
 (0)