Author: Matti Picus <[email protected]>
Branch: _warnings
Changeset: r87454:f31d6c388d20
Date: 2016-09-29 21:17 +0300
http://bitbucket.org/pypy/pypy/changeset/f31d6c388d20/
Log: add test that passes untranslated, fails w/pypy -A (TypeError:
expected a readable buffer object)
diff --git a/pypy/module/_warnings/test/test_warnings.py
b/pypy/module/_warnings/test/test_warnings.py
--- a/pypy/module/_warnings/test/test_warnings.py
+++ b/pypy/module/_warnings/test/test_warnings.py
@@ -11,6 +11,7 @@
import _warnings
_warnings.warn("some message", DeprecationWarning)
_warnings.warn("some message", Warning)
+ _warnings.warn(("some message",1), Warning)
def test_lineno(self):
import warnings, _warnings, sys
@@ -40,7 +41,10 @@
def test_show_source_line(self):
import warnings
import sys, StringIO
- from test.warning_tests import inner
+ try:
+ from test.warning_tests import inner
+ except ImportError:
+ skip('no test, -A on cpython?')
# With showarning() missing, make sure that output is okay.
del warnings.showwarning
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit