Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: py3.6-wordcode
Changeset: r94578:016bcfb6289b
Date: 2018-05-14 14:54 +0200
http://bitbucket.org/pypy/pypy/changeset/016bcfb6289b/
Log: how did this ever work?
diff --git a/pypy/interpreter/astcompiler/test/test_astbuilder.py
b/pypy/interpreter/astcompiler/test/test_astbuilder.py
--- a/pypy/interpreter/astcompiler/test/test_astbuilder.py
+++ b/pypy/interpreter/astcompiler/test/test_astbuilder.py
@@ -940,7 +940,7 @@
def test_flufl(self):
source = "x <> y"
- raises(SyntaxError, self.get_ast, source)
+ py.test.raises(SyntaxError, self.get_ast, source)
comp = self.get_first_expr(source,
flags=consts.CO_FUTURE_BARRY_AS_BDFL)
assert isinstance(comp, ast.Compare)
@@ -1168,7 +1168,7 @@
s = self.get_first_expr("b'hi' b' implicitly' b' extra'")
assert isinstance(s, ast.Bytes)
assert space.eq_w(s.s, space.newbytes("hi implicitly extra"))
- raises(SyntaxError, self.get_first_expr, "b'hello' 'world'")
+ py.test.raises(SyntaxError, self.get_first_expr, "b'hello' 'world'")
sentence = u"Die Männer ärgen sich!"
source = u"# coding: utf-7\nstuff = '%s'" % (sentence,)
info = pyparse.CompileInfo("<test>", "exec")
@@ -1363,8 +1363,8 @@
assert isinstance(if2, ast.Name)
def test_cpython_issue12983(self):
- raises(SyntaxError, self.get_ast, r"""b'\x'""")
- raises(SyntaxError, self.get_ast, r"""b'\x0'""")
+ py.test.raises(SyntaxError, self.get_ast, r"""b'\x'""")
+ py.test.raises(SyntaxError, self.get_ast, r"""b'\x0'""")
def test_matmul(self):
mod = self.get_ast("a @ b")
diff --git a/pypy/interpreter/astcompiler/test/test_compiler.py
b/pypy/interpreter/astcompiler/test/test_compiler.py
--- a/pypy/interpreter/astcompiler/test/test_compiler.py
+++ b/pypy/interpreter/astcompiler/test/test_compiler.py
@@ -1008,6 +1008,7 @@
("C4.__doc__", 'docstring'),
("C4.__doc__", 'docstring'),
("__doc__", None),])
+
def test_remove_docstring(self, expr, result):
source = '"module_docstring"\n' + """if 1:
def f1():
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit