Skip to content

Commit

Permalink
cast to list first
Browse files Browse the repository at this point in the history
  • Loading branch information
ewu63 committed Mar 17, 2024
1 parent 0b1714d commit e1f3207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class TestImportSnoptFromPath(unittest.TestCase):
def test_nonexistent_path(self):
# first unload `snopt` from namespace
for key in sys.modules.keys():
for key in list(sys.modules.keys()):
if "snopt" in key:
sys.modules.pop(key)
with self.assertWarns(ImportWarning):
Expand Down

0 comments on commit e1f3207

Please sign in to comment.