Skip to content

Commit 880b6a9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 70cdf7c commit 880b6a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/utils/test_optional_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_failed_import_shows_traceback_string(self):
101101
mod, flag = optional_import("nonexistent_module_for_tb_test")
102102
self.assertFalse(flag)
103103
with self.assertRaises(OptionalImportError) as ctx:
104-
_ = getattr(mod, "something")
104+
_ = mod.something
105105
self.assertIn("Original traceback", str(ctx.exception))
106106
self.assertIn("ModuleNotFoundError", str(ctx.exception))
107107

0 commit comments

Comments
 (0)