summaryrefslogtreecommitdiff
path: root/src/_pytest/tmpdir.py
diff options
context:
space:
mode:
authorR. Alex Matevish <alex@matevi.sh>2019-02-14 00:03:41 -0800
committerR. Alex Matevish <alex@matevi.sh>2019-02-14 00:03:41 -0800
commit40cec637d7b9faf7f3794cd6c71517f98704c817 (patch)
tree9767610eb256995c9c6c95d12e3d6fd6a2fc8f9f /src/_pytest/tmpdir.py
parentc84ae0bb7a8f94c9eaa3b9cda1940c1c9cf22e13 (diff)
downloadpytest-40cec637d7b9faf7f3794cd6c71517f98704c817.tar.gz
Update kwarg for attr.ib to use 'converter' as 'convert' is due to be deprecated
Diffstat (limited to 'src/_pytest/tmpdir.py')
-rw-r--r--src/_pytest/tmpdir.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/tmpdir.py b/src/_pytest/tmpdir.py
index 843c8ca37..4d109cc2b 100644
--- a/src/_pytest/tmpdir.py
+++ b/src/_pytest/tmpdir.py
@@ -31,7 +31,7 @@ class TempPathFactory(object):
# using os.path.abspath() to get absolute path instead of resolve() as it
# does not work the same in all platforms (see #4427)
# Path.absolute() exists, but it is not public (see https://bugs.python.org/issue25012)
- convert=attr.converters.optional(
+ converter=attr.converters.optional(
lambda p: Path(os.path.abspath(six.text_type(p)))
)
)