Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Fix some test failures when frozen_dicts are enabled#6642

Merged
richvdh merged 6 commits into
developfrom
rav/fix_frozen_events
Jan 6, 2020
Merged

Fix some test failures when frozen_dicts are enabled#6642
richvdh merged 6 commits into
developfrom
rav/fix_frozen_events

Conversation

@richvdh
Copy link
Copy Markdown
Member

@richvdh richvdh commented Jan 6, 2020

Fixes #4026

@richvdh richvdh requested a review from a team January 6, 2020 13:47
Comment thread synapse/handlers/room.py
initial_state[(EventTypes.PowerLevels, "")] = new_power_levels

# Assign this power level to the requester
new_power_levels = {k: v for k, v in power_levels.items() if k != "users"}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment to say that we're working around the fact this could be a frozendict would be good, I got quite confused.

Comment thread changelog.d/6643.misc Outdated
@@ -0,0 +1 @@
Fix test failures when frozen_dicts are enabled.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't these effect real world usage too?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

affect ;-p

yeah, I guess so.

@richvdh richvdh merged commit ba897a7 into develop Jan 6, 2020
@richvdh richvdh deleted the rav/fix_frozen_events branch January 6, 2020 15:22
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit 'ba897a759':
  Fix some test failures when frozen_dicts are enabled (#6642)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants