From 09724cdf0fe421c24b2b225c0fb00be8518fe9a0 Mon Sep 17 00:00:00 2001 From: Ella Wu Date: Thu, 18 Apr 2024 14:04:44 -0700 Subject: [PATCH] fix test --- tests/test_other.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_other.py b/tests/test_other.py index 41435b8d..f0c59b2c 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -18,7 +18,7 @@ def test_nonexistent_path(self): if "snopt" in key: sys.modules.pop(key) with self.assertWarns(UserWarning): - module = try_import_compiled_module_from_path("snopt", "/a/nonexistent/path") + module = try_import_compiled_module_from_path("snopt", "/a/nonexistent/path", raise_warning=True) self.assertTrue(isinstance(module, str)) def test_sys_path_unchanged(self):