Correct the spelling of ArgSource.INVOCATION_DIR (#11333)

Config.ArgsSource.INCOVATION_DIR remains as a backwards compatibility
alias.
This commit is contained in:
Jon Parise
2023-08-23 02:21:17 -07:00
committed by GitHub
parent 23b899f31f
commit 7500fe44b2
3 changed files with 23 additions and 2 deletions
+3 -2
View File
@@ -953,7 +953,8 @@ class Config:
#: Command line arguments.
ARGS = enum.auto()
#: Invocation directory.
INCOVATION_DIR = enum.auto()
INVOCATION_DIR = enum.auto()
INCOVATION_DIR = INVOCATION_DIR # backwards compatibility alias
#: 'testpaths' configuration value.
TESTPATHS = enum.auto()
@@ -1278,7 +1279,7 @@ class Config:
else:
result = []
if not result:
source = Config.ArgsSource.INCOVATION_DIR
source = Config.ArgsSource.INVOCATION_DIR
result = [str(invocation_dir)]
return result, source