diff options
author | Ran Benita <ran@unusedvar.com> | 2020-08-06 14:37:19 +0300 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-09-04 18:04:25 +0300 |
commit | a346028006a7ca9d07788e837456b3ab3a1209eb (patch) | |
tree | a2a1eec70bc82b8eb56f2a77046cbd4a9c99fe5c /changelog | |
parent | 3085c99e4768b6dc46a7a40c2e29216e12faeb84 (diff) | |
download | pytest-a346028006a7ca9d07788e837456b3ab3a1209eb.tar.gz |
config: add Config.{rootpath,inipath}, turn Config.{rootdir,inifile} to properties
Diffstat (limited to 'changelog')
-rw-r--r-- | changelog/7685.improvement.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/changelog/7685.improvement.rst b/changelog/7685.improvement.rst new file mode 100644 index 000000000..597721624 --- /dev/null +++ b/changelog/7685.improvement.rst @@ -0,0 +1,3 @@ +Added two new attributes :attr:`rootpath <_pytest.config.Config.rootpath>` and :attr:`inipath <_pytest.config.Config.inipath>` to :class:`Config <_pytest.config.Config>`. +These attributes are :class:`pathlib.Path` versions of the existing :attr:`rootdir <_pytest.config.Config.rootdir>` and :attr:`inifile <_pytest.config.Config.inifile>` attributes, +and should be preferred over them when possible. |