diff --git a/changelog/11333.trivial.rst b/changelog/11333.trivial.rst new file mode 100644 index 00000000000..fa99f516060 --- /dev/null +++ b/changelog/11333.trivial.rst @@ -0,0 +1 @@ +Correct the spelling of ``ArgSource.INVOCATION_DIR``. diff --git a/src/_pytest/config/__init__.py b/src/_pytest/config/__init__.py index 8dbaf7c70e5..8a8c0bc1a28 100644 --- a/src/_pytest/config/__init__.py +++ b/src/_pytest/config/__init__.py @@ -953,7 +953,7 @@ class ArgsSource(enum.Enum): #: Command line arguments. ARGS = enum.auto() #: Invocation directory. - INCOVATION_DIR = enum.auto() + INVOCATION_DIR = enum.auto() #: 'testpaths' configuration value. TESTPATHS = enum.auto() @@ -1278,7 +1278,7 @@ def _decide_args( else: result = [] if not result: - source = Config.ArgsSource.INCOVATION_DIR + source = Config.ArgsSource.INVOCATION_DIR result = [str(invocation_dir)] return result, source