Skip to content

Commit

Permalink
Update test_other.py to match new warning
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomangano authored Mar 22, 2024
1 parent e36655c commit cbfa664
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 @@ -17,7 +17,7 @@ def test_nonexistent_path(self):
for key in list(sys.modules.keys()):
if "snopt" in key:
sys.modules.pop(key)
with self.assertWarns(ImportWarning):
with self.assertWarns(UserWarning):
module = try_import_compiled_module_from_path("snopt", "/a/nonexistent/path")
self.assertTrue(isinstance(module, str))

Expand Down

0 comments on commit cbfa664

Please sign in to comment.