Skip to content

Commit 3e782cf

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c1b926c commit 3e782cf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/pytest_reportlog/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ def pytest_terminal_summary(self, terminalreporter):
110110

111111
def unserializable_to_marked_str(obj: object) -> Dict[str, str]:
112112
"""for a object that json can not serialize. return {"$no-json": str(obj)}"""
113-
return { "$no-json": str(obj)}
113+
return {"$no-json": str(obj)}

tests/test_reportlog.py

-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def test_warning():
135135
def test_unserializable_to_marked():
136136
"""Unittest for the cleanup_unserializable function"""
137137

138-
139138
good = {"x": 1, "y": ["a", "b"]}
140139
new = json.loads(json.dumps(good, default=unserializable_to_marked_str))
141140
assert new == good

0 commit comments

Comments
 (0)