File tree Expand file tree Collapse file tree 14 files changed +115
-115
lines changed Expand file tree Collapse file tree 14 files changed +115
-115
lines changed Original file line number Diff line number Diff line change 38
38
from _pytest .main import Session
39
39
from _pytest .pathlib import absolutepath
40
40
from _pytest .pathlib import fnmatch_ex
41
- from _pytest .store import StoreKey
41
+ from _pytest .stash import StashKey
42
42
43
43
if TYPE_CHECKING :
44
44
from _pytest .assertion import AssertionState
45
45
46
46
47
- assertstate_key = StoreKey ["AssertionState" ]()
47
+ assertstate_key = StashKey ["AssertionState" ]()
48
48
49
49
50
50
# pytest caches rewritten pycs in pycache dirs
Original file line number Diff line number Diff line change 56
56
from _pytest .pathlib import import_path
57
57
from _pytest .pathlib import ImportMode
58
58
from _pytest .pathlib import resolve_package_path
59
- from _pytest .store import Store
59
+ from _pytest .stash import Stash
60
60
from _pytest .warning_types import PytestConfigWarning
61
61
62
62
if TYPE_CHECKING :
@@ -933,7 +933,7 @@ def __init__(
933
933
self ._cleanup : List [Callable [[], None ]] = []
934
934
# A place where plugins can store information on the config for their
935
935
# own use. Currently only intended for internal plugins.
936
- self ._store = Store ()
936
+ self ._store = Stash ()
937
937
self .pluginmanager .register (self , "pytestconfig" )
938
938
self ._configured = False
939
939
self .hook .pytest_addoption .call_historic (
Original file line number Diff line number Diff line change 8
8
from _pytest .config import Config
9
9
from _pytest .config .argparsing import Parser
10
10
from _pytest .nodes import Item
11
- from _pytest .store import StoreKey
11
+ from _pytest .stash import StashKey
12
12
13
13
14
- fault_handler_stderr_key = StoreKey [TextIO ]()
15
- fault_handler_originally_enabled_key = StoreKey [bool ]()
14
+ fault_handler_stderr_key = StashKey [TextIO ]()
15
+ fault_handler_originally_enabled_key = StashKey [bool ]()
16
16
17
17
18
18
def pytest_addoption (parser : Parser ) -> None :
Original file line number Diff line number Diff line change 62
62
from _pytest .outcomes import TEST_OUTCOME
63
63
from _pytest .pathlib import absolutepath
64
64
from _pytest .pathlib import bestrelpath
65
- from _pytest .store import StoreKey
65
+ from _pytest .stash import StashKey
66
66
67
67
if TYPE_CHECKING :
68
68
from typing import Deque
@@ -149,7 +149,7 @@ def get_scope_node(
149
149
150
150
151
151
# Used for storing artificial fixturedefs for direct parametrization.
152
- name2pseudofixturedef_key = StoreKey [Dict [str , "FixtureDef[Any]" ]]()
152
+ name2pseudofixturedef_key = StashKey [Dict [str , "FixtureDef[Any]" ]]()
153
153
154
154
155
155
def add_funcarg_pseudo_fixture_def (
Original file line number Diff line number Diff line change 30
30
from _pytest .config .argparsing import Parser
31
31
from _pytest .fixtures import FixtureRequest
32
32
from _pytest .reports import TestReport
33
- from _pytest .store import StoreKey
33
+ from _pytest .stash import StashKey
34
34
from _pytest .terminal import TerminalReporter
35
35
36
36
37
- xml_key = StoreKey ["LogXML" ]()
37
+ xml_key = StashKey ["LogXML" ]()
38
38
39
39
40
40
def bin_xml_escape (arg : object ) -> str :
Original file line number Diff line number Diff line change 31
31
from _pytest .fixtures import fixture
32
32
from _pytest .fixtures import FixtureRequest
33
33
from _pytest .main import Session
34
- from _pytest .store import StoreKey
34
+ from _pytest .stash import StashKey
35
35
from _pytest .terminal import TerminalReporter
36
36
37
37
38
38
DEFAULT_LOG_FORMAT = "%(levelname)-8s %(name)s:%(filename)s:%(lineno)d %(message)s"
39
39
DEFAULT_LOG_DATE_FORMAT = "%H:%M:%S"
40
40
_ANSI_ESCAPE_SEQ = re .compile (r"\x1b\[[\d;]+m" )
41
- caplog_handler_key = StoreKey ["LogCaptureHandler" ]()
42
- caplog_records_key = StoreKey [Dict [str , List [logging .LogRecord ]]]()
41
+ caplog_handler_key = StashKey ["LogCaptureHandler" ]()
42
+ caplog_records_key = StashKey [Dict [str , List [logging .LogRecord ]]]()
43
43
44
44
45
45
def _remove_ansi_escape_sequences (text : str ) -> str :
Original file line number Diff line number Diff line change 25
25
from _pytest .config .argparsing import Parser
26
26
from _pytest .deprecated import MINUS_K_COLON
27
27
from _pytest .deprecated import MINUS_K_DASH
28
- from _pytest .store import StoreKey
28
+ from _pytest .stash import StashKey
29
29
30
30
if TYPE_CHECKING :
31
31
from _pytest .nodes import Item
41
41
]
42
42
43
43
44
- old_mark_config_key = StoreKey [Optional [Config ]]()
44
+ old_mark_config_key = StashKey [Optional [Config ]]()
45
45
46
46
47
47
def param (
Original file line number Diff line number Diff line change 34
34
from _pytest .outcomes import fail
35
35
from _pytest .pathlib import absolutepath
36
36
from _pytest .pathlib import commonpath
37
- from _pytest .store import Store
37
+ from _pytest .stash import Stash
38
38
from _pytest .warning_types import PytestWarning
39
39
40
40
if TYPE_CHECKING :
@@ -220,7 +220,7 @@ def __init__(
220
220
221
221
# A place where plugins can store information on the node for their
222
222
# own use. Currently only intended for internal plugins.
223
- self ._store = Store ()
223
+ self ._store = Stash ()
224
224
225
225
@property
226
226
def fspath (self ) -> LEGACY_PATH :
Original file line number Diff line number Diff line change 8
8
from _pytest .config import Config
9
9
from _pytest .config import create_terminal_writer
10
10
from _pytest .config .argparsing import Parser
11
- from _pytest .store import StoreKey
11
+ from _pytest .stash import StashKey
12
12
from _pytest .terminal import TerminalReporter
13
13
14
14
15
- pastebinfile_key = StoreKey [IO [bytes ]]()
15
+ pastebinfile_key = StashKey [IO [bytes ]]()
16
16
17
17
18
18
def pytest_addoption (parser : Parser ) -> None :
Original file line number Diff line number Diff line change 21
21
from _pytest .outcomes import xfail
22
22
from _pytest .reports import BaseReport
23
23
from _pytest .runner import CallInfo
24
- from _pytest .store import StoreKey
24
+ from _pytest .stash import StashKey
25
25
26
26
27
27
def pytest_addoption (parser : Parser ) -> None :
@@ -228,7 +228,7 @@ def evaluate_xfail_marks(item: Item) -> Optional[Xfail]:
228
228
229
229
230
230
# Saves the xfail mark evaluation. Can be refreshed during call if None.
231
- xfailed_key = StoreKey [Optional [Xfail ]]()
231
+ xfailed_key = StashKey [Optional [Xfail ]]()
232
232
233
233
234
234
@hookimpl (tryfirst = True )
You can’t perform that action at this time.
0 commit comments