Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 4, 2024
1 parent f7f4b6d commit b19872c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/checkers/unittest_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_relative_beyond_top_level_four(capsys: CaptureFixture[str]) -> None:
assert errors == ""

def test_wildcard_import_init(self) -> None:
context_file = os.path.join(REGR_DATA,"dummy_wildcard.py")
context_file = os.path.join(REGR_DATA, "dummy_wildcard.py")

with augmented_sys_path([discover_package_path(context_file, [])]):
module = astroid.MANAGER.ast_from_module_name("init_wildcard", context_file)
Expand All @@ -103,7 +103,7 @@ def test_wildcard_import_init(self) -> None:
self.checker.visit_importfrom(import_from)

def test_wildcard_import_non_init(self) -> None:
context_file = os.path.join(REGR_DATA,"dummy_wildcard.py")
context_file = os.path.join(REGR_DATA, "dummy_wildcard.py")

with augmented_sys_path([discover_package_path(context_file, [])]):
module = astroid.MANAGER.ast_from_module_name("wildcard", context_file)
Expand Down

0 comments on commit b19872c

Please sign in to comment.