Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r89343:ddae4777286a
Date: 2017-01-03 18:29 +0100
http://bitbucket.org/pypy/pypy/changeset/ddae4777286a/
Log: A failing test that is the root cause of the failures of tests
checking Warnings
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
@@ -18,6 +18,16 @@
_warnings.warn("some message", Warning)
_warnings.warn(("some message",1), Warning)
+ def test_use_builtin__warnings(self):
+ """Check that the stdlib warnings.py module manages to import our
+ _warnings module. If something is missing, it doesn't, and silently
+ continues. Then things don't reliably work: either the
+ functionality of the pure Python version is subtly different, or
+ more likely we get confusion because of a half-imported _warnings.
+ """
+ import warnings
+ assert not hasattr(warnings, '_filters_version')
+
def test_lineno(self):
import warnings, _warnings, sys
with warnings.catch_warnings(record=True) as w:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit