summaryrefslogtreecommitdiff
path: root/_pytest/compat.py
diff options
context:
space:
mode:
authorRonny Pfannschmidt <ronny.pfannschmidt@redhat.com>2017-03-15 18:00:59 +0100
committerRonny Pfannschmidt <ronny.pfannschmidt@redhat.com>2017-03-28 11:45:06 +0200
commit92f6ab188137a44479b0c6bcf209c3bf2ea31b41 (patch)
tree68011adf931650585c90cc2b7aa677f53eb33458 /_pytest/compat.py
parent809c36e1f6d5cd837da798026f20aa62c6c7a4e2 (diff)
downloadpytest-92f6ab188137a44479b0c6bcf209c3bf2ea31b41.tar.gz
fix all singular internal module imports and add a test for them
Diffstat (limited to '_pytest/compat.py')
-rw-r--r--_pytest/compat.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/_pytest/compat.py b/_pytest/compat.py
index 5be7f7a2a..c06e3f4ca 100644
--- a/_pytest/compat.py
+++ b/_pytest/compat.py
@@ -291,3 +291,12 @@ else:
def getvalue(self):
return self.buffer.getvalue().decode('UTF-8')
+
+class FuncargnamesCompatAttr(object):
+ """ helper class so that Metafunc, Function and FixtureRequest
+ don't need to each define the "funcargnames" compatibility attribute.
+ """
+ @property
+ def funcargnames(self):
+ """ alias attribute for ``fixturenames`` for pre-2.3 compatibility"""
+ return self.fixturenames