File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 13
13
import sys
14
14
import tokenize
15
15
import types
16
- from pathlib import Path
17
16
from typing import Dict
18
17
from typing import List
19
18
from typing import Optional
28
27
)
29
28
from _pytest .compat import fspath
30
29
from _pytest .pathlib import fnmatch_ex
30
+ from _pytest .pathlib import Path
31
31
from _pytest .pathlib import PurePath
32
32
33
33
# pytest caches rewritten pycs in pycache dirs
Original file line number Diff line number Diff line change 8
8
import types
9
9
import warnings
10
10
from functools import lru_cache
11
- from pathlib import Path
12
11
from types import TracebackType
13
12
from typing import Any
14
13
from typing import Callable
40
39
from _pytest .compat import importlib_metadata
41
40
from _pytest .outcomes import fail
42
41
from _pytest .outcomes import Skipped
42
+ from _pytest .pathlib import Path
43
43
from _pytest .warning_types import PytestConfigWarning
44
44
45
45
if False : # TYPE_CHECKING
Original file line number Diff line number Diff line change 9
9
import textwrap
10
10
import zipfile
11
11
from functools import partial
12
- from pathlib import Path
13
12
14
13
import py
15
14
23
22
from _pytest .assertion .rewrite import PYTEST_TAG
24
23
from _pytest .assertion .rewrite import rewrite_asserts
25
24
from _pytest .main import ExitCode
25
+ from _pytest .pathlib import Path
26
26
27
27
28
28
def setup_module (mod ):
Original file line number Diff line number Diff line change 1
1
import os
2
2
import sys
3
3
import textwrap
4
- from pathlib import Path
5
4
6
5
import _pytest ._code
7
6
import pytest
13
12
from _pytest .config .findpaths import get_common_ancestor
14
13
from _pytest .config .findpaths import getcfg
15
14
from _pytest .main import ExitCode
15
+ from _pytest .pathlib import Path
16
16
17
17
18
18
class TestParseIni :
Original file line number Diff line number Diff line change 1
1
import os
2
2
import textwrap
3
- from pathlib import Path
4
3
5
4
import py
6
5
7
6
import pytest
8
7
from _pytest .config import PytestPluginManager
9
8
from _pytest .main import ExitCode
9
+ from _pytest .pathlib import Path
10
10
11
11
12
12
def ConftestWithSetinitial (path ):
Original file line number Diff line number Diff line change 1
1
import os
2
2
import platform
3
3
from datetime import datetime
4
- from pathlib import Path
5
4
from xml .dom import minidom
6
5
7
6
import py
8
7
import xmlschema
9
8
10
9
import pytest
11
10
from _pytest .junitxml import LogXML
11
+ from _pytest .pathlib import Path
12
12
from _pytest .reports import BaseReport
13
13
14
14
You can’t perform that action at this time.
0 commit comments