From a098226ee4e720edbe7eb2ec90475974eead84a7 Mon Sep 17 00:00:00 2001 From: Dj Gilcrease Date: Thu, 2 Oct 2014 21:32:35 +0000 Subject: [PATCH] change the defaults from a tuple to a list so I can use config.addinivalue_line("python_files", "...") to append new options in my own plugins --- _pytest/python.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_pytest/python.py b/_pytest/python.py index 9ce1d2170..dc0e5ac3d 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -124,11 +124,11 @@ def pytest_addoption(parser): parser.addini("usefixtures", type="args", default=[], help="list of default fixtures to be used with this project") parser.addini("python_files", type="args", - default=('test_*.py', '*_test.py'), + default=['test_*.py', '*_test.py'], help="glob-style file patterns for Python test module discovery") - parser.addini("python_classes", type="args", default=("Test",), + parser.addini("python_classes", type="args", default=["Test",], help="prefixes for Python test class discovery") - parser.addini("python_functions", type="args", default=("test",), + parser.addini("python_functions", type="args", default=["test",], help="prefixes for Python test function and method discovery") def pytest_cmdline_main(config):