Correct the spelling of Config.ArgsSource.INVOCATION_DIR

Config.ArgsSource.INCOVATION_DIR remains as a backwards compatibility
alias.
This commit is contained in:
Jon Parise 2023-08-21 20:11:57 -07:00
parent 050f402816
commit cbe1662762
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1 @@
Corrected the spelling of ``Config.ArgsSource.INVOCATION_DIR``.

View File

@ -953,7 +953,8 @@ class Config:
#: Command line arguments. #: Command line arguments.
ARGS = enum.auto() ARGS = enum.auto()
#: Invocation directory. #: Invocation directory.
INCOVATION_DIR = enum.auto() INVOCATION_DIR = enum.auto()
INCOVATION_DIR = INVOCATION_DIR # backwards compatibility alias
#: 'testpaths' configuration value. #: 'testpaths' configuration value.
TESTPATHS = enum.auto() TESTPATHS = enum.auto()
@ -1278,7 +1279,7 @@ class Config:
else: else:
result = [] result = []
if not result: if not result:
source = Config.ArgsSource.INCOVATION_DIR source = Config.ArgsSource.INVOCATION_DIR
result = [str(invocation_dir)] result = [str(invocation_dir)]
return result, source return result, source