diff options
author | Ronny Pfannschmidt <ronny.pfannschmidt@redhat.com> | 2017-03-15 18:00:59 +0100 |
---|---|---|
committer | Ronny Pfannschmidt <ronny.pfannschmidt@redhat.com> | 2017-03-28 11:45:06 +0200 |
commit | 92f6ab188137a44479b0c6bcf209c3bf2ea31b41 (patch) | |
tree | 68011adf931650585c90cc2b7aa677f53eb33458 /_pytest/compat.py | |
parent | 809c36e1f6d5cd837da798026f20aa62c6c7a4e2 (diff) | |
download | pytest-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.py | 9 |
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 |