summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorfeuillemorte <fmorte@ya.ru>2018-02-27 19:16:45 +0300
committerfeuillemorte <fmorte@ya.ru>2018-02-27 19:16:45 +0300
commit409b919fc0cf291b38cabb7eb991b086323e5d1b (patch)
treeaad4ad43b68891b9b9bd43e0af42cb4f88661ce6 /testing
parenteadd15fe4591c4e1c1c949a489cfc53976b5b543 (diff)
downloadpytest-409b919fc0cf291b38cabb7eb991b086323e5d1b.tar.gz
#3260 Added test
Diffstat (limited to 'testing')
-rw-r--r--testing/test_config.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/test_config.py b/testing/test_config.py
index f256b512f..39105f5d6 100644
--- a/testing/test_config.py
+++ b/testing/test_config.py
@@ -110,6 +110,13 @@ class TestConfigCmdlineParsing(object):
config = testdir.parseconfig("-c", "custom.cfg")
assert config.getini("custom") == "1"
+ testdir.makefile(".cfg", custom_tool_pytest_section="""
+ [tool:pytest]
+ custom = 1
+ """)
+ config = testdir.parseconfig("-c", "custom_tool_pytest_section.cfg")
+ assert config.getini("custom") == "1"
+
def test_absolute_win32_path(self, testdir):
temp_cfg_file = testdir.makefile(".cfg", custom="""
[pytest]