[pypy-commit] pypy py3k: kill this test about warnings and conditional expressions. We stopped issuing the warning long time ago
antocuni
noreply at buildbot.pypy.org
Fri Jan 27 20:29:20 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r51876:1b76cb58345b
Date: 2012-01-27 12:35 +0100
http://bitbucket.org/pypy/pypy/changeset/1b76cb58345b/
Log: kill this test about warnings and conditional expressions. We
stopped issuing the warning long time ago
diff --git a/pypy/interpreter/test/test_syntax.py b/pypy/interpreter/test/test_syntax.py
--- a/pypy/interpreter/test/test_syntax.py
+++ b/pypy/interpreter/test/test_syntax.py
@@ -168,13 +168,6 @@
exec(s, ns)
assert ns['x'] == expected
- def test_condexpr_no_warning(self):
- import warnings
-
- warnings.simplefilter('error', SyntaxWarning)
- exec("1 if True else 2")
- warnings.simplefilter('default', SyntaxWarning)
-
class AppTestYield:
def test_bare_yield(self):
s = "def f():\n yield"
More information about the pypy-commit
mailing list