[pypy-commit] pypy default: adjust per 1f2e9de489e6
pjenvey
noreply at buildbot.pypy.org
Thu May 1 21:30:06 CEST 2014
Author: Philip Jenvey <pjenvey at underboss.org>
Branch:
Changeset: r71147:ce13767ee917
Date: 2014-05-01 12:29 -0700
http://bitbucket.org/pypy/pypy/changeset/ce13767ee917/
Log: adjust per 1f2e9de489e6
diff --git a/pypy/module/_ast/test/test_ast.py b/pypy/module/_ast/test/test_ast.py
--- a/pypy/module/_ast/test/test_ast.py
+++ b/pypy/module/_ast/test/test_ast.py
@@ -218,19 +218,19 @@
x = ast.Num()
assert x._fields == ('n',)
exc = raises(AttributeError, getattr, x, 'n')
- assert exc.value.args[0] == "'Num' object has no attribute 'n'"
+ assert "Num' object has no attribute 'n'" in exc.value.args[0]
x = ast.Num(42)
assert x.n == 42
exc = raises(AttributeError, getattr, x, 'lineno')
- assert exc.value.args[0] == "'Num' object has no attribute 'lineno'"
+ assert "Num' object has no attribute 'lineno'" in exc.value.args[0]
y = ast.Num()
x.lineno = y
assert x.lineno == y
exc = raises(AttributeError, getattr, x, 'foobar')
- assert exc.value.args[0] == "'Num' object has no attribute 'foobar'"
+ assert "Num' object has no attribute 'foobar'" in exc.value.args[0]
x = ast.Num(lineno=2)
assert x.lineno == 2
@@ -423,4 +423,3 @@
str_node2 = copy.deepcopy(str_node)
dict_res = str_node2.__dict__
assert dict_res == {'n':2, 'lineno':2}
-
\ No newline at end of file
More information about the pypy-commit
mailing list