Skip to content

Commit

Permalink
pyreverse - Add project modules to sys.path
Browse files Browse the repository at this point in the history
- Prevent re-defining from outer scope

Closes pylint-dev#2479
  • Loading branch information
mbyrnepr2 committed Sep 27, 2021
1 parent 71e3294 commit 4eb12c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/pyreverse/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
PROJECT_ROOT_DIR = os.path.abspath(os.path.join(TEST_DATA_DIR, ".."))


@pytest.fixture(params=[PROJECT_ROOT_DIR, TEST_DATA_DIR])
def setup_path(request):
@pytest.fixture(name="setup_path", params=[PROJECT_ROOT_DIR, TEST_DATA_DIR])
def fixture_setup_path(request):
current_sys_path = list(sys.path)
sys.path[:] = []
current_dir = os.getcwd()
Expand Down

0 comments on commit 4eb12c6

Please sign in to comment.