Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163655
D3249.id11512.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
565 B
Subscribers
None
D3249.id11512.diff
View Options
diff --git a/swh/journal/pytest_plugin.py b/swh/journal/pytest_plugin.py
--- a/swh/journal/pytest_plugin.py
+++ b/swh/journal/pytest_plugin.py
@@ -83,8 +83,9 @@
del value["ctime"]
for key in known_keys:
+ str_key_error_msg = hash_to_hex(key) if not isinstance(key, dict) else key
assert key in received_keys, (
- f"expected {object_type} key {hash_to_hex(key)} "
+ f"expected {object_type} key {str_key_error_msg} "
"absent from consumed messages"
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 30, 11:57 AM (1 w, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3227343
Attached To
D3249: pytest_plugin: Fix cascading assertion error when key is not hashable
Event Timeline
Log In to Comment