mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Remove plumbum
This commit is contained in:
parent
5d9ba14841
commit
bbd2572b11
24 changed files with 236 additions and 203 deletions
|
|
@ -4,9 +4,9 @@ import pytest
|
|||
import os
|
||||
import os.path
|
||||
import random
|
||||
from plumbum import local
|
||||
|
||||
from pre_commit.util import clean_path_on_failure
|
||||
from pre_commit.util import cwd
|
||||
from pre_commit.util import memoize_by_cwd
|
||||
from pre_commit.util import shell_escape
|
||||
from pre_commit.util import tmpdir
|
||||
|
|
@ -37,7 +37,7 @@ def test_memoized_by_cwd_returns_different_for_different_args(memoized_by_cwd):
|
|||
|
||||
def test_memoized_by_cwd_changes_with_different_cwd(memoized_by_cwd):
|
||||
ret = memoized_by_cwd('baz')
|
||||
with local.cwd('.git'):
|
||||
with cwd('.git'):
|
||||
ret2 = memoized_by_cwd('baz')
|
||||
|
||||
assert ret != ret2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue