[Pytest-commit] commit/pytest: gutworth: use __dict__ not func_dict for Python 3 compatibility
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon May 27 23:05:01 CEST 2013
1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/commits/705c35908c83/
Changeset: 705c35908c83
User: gutworth
Date: 2013-05-27 23:04:53
Summary: use __dict__ not func_dict for Python 3 compatibility
Affected #: 1 file
diff -r 5ce621f0b3d2857ce7035b765cd18836ec8ea73f -r 705c35908c8351c5f30977553f7af48ea3b578fa _pytest/mark.py
--- a/_pytest/mark.py
+++ b/_pytest/mark.py
@@ -138,7 +138,7 @@
mapped_names.add(name)
# Add the names attached to the current function through direct assignment
- for name in colitem.function.func_dict:
+ for name in colitem.function.__dict__:
mapped_names.add(name)
return eval(keywordexpr, {}, KeywordMapping(mapped_names))
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the pytest-commit
mailing list