[pypy-commit] pypy py3k: propagate None attributes down into the appdirect tests too
pjenvey
noreply at buildbot.pypy.org
Mon Apr 15 01:59:35 CEST 2013
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r63358:2353031aa8b8
Date: 2013-04-14 16:59 -0700
http://bitbucket.org/pypy/pypy/changeset/2353031aa8b8/
Log: propagate None attributes down into the appdirect tests too
diff --git a/pypy/tool/pytest/apptest.py b/pypy/tool/pytest/apptest.py
--- a/pypy/tool/pytest/apptest.py
+++ b/pypy/tool/pytest/apptest.py
@@ -114,7 +114,8 @@
elif isinstance(value, types.ModuleType):
name = value.__name__
defs.append("import %s; self.%s = %s\n" % (name, symbol, name))
- elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)):
+ elif isinstance(value, (str, unicode, int, long, float, list, tuple,
+ dict)) or value is None:
defs.append("self.%s = %s\n" % (symbol, py3k_repr(value)))
source = py.code.Source(target_)[1:]
pyfile = udir.join('src.py')
More information about the pypy-commit
mailing list