Skip to content

Commit

Permalink
Copy the anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Feb 16, 2024
1 parent 2860dfc commit 7835071
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unitary/jupyter/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
def replace_modules():
mocked_modules = {}

anchor = sys.modules
anchor = sys.modules.copy()

def replace(modules: dict):
sys.modules = sys.modules.copy()
for module, mock in modules.items():
assert module not in sys.modules
sys.modules[module] = mock
Expand Down

0 comments on commit 7835071

Please sign in to comment.