store pristine marks on function.pytestmark

fixes #2516
This commit is contained in:
Ronny Pfannschmidt
2017-06-22 10:48:45 +02:00
parent 64ae6ae25d
commit 19b12b22e7
2 changed files with 24 additions and 1 deletions
+1
View File
@@ -333,6 +333,7 @@ class MarkDecorator:
apply_mark(func, self.mark)
else:
apply_legacy_mark(func, self.mark)
apply_mark(func, self.mark)
return func
mark = Mark(self.name, args, kwargs)