diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-09-10 21:57:34 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-09-10 21:57:34 +0000 |
commit | 9aa4299882500ca3206514bced135c0a1083355d (patch) | |
tree | 2a224e759cc42db9cfb80d0d96e630f0c29e9db3 /Lib/test/test_weakref.py | |
parent | 5e19e4441335a70c9087402e9c487b66c9daca94 (diff) | |
download | cpython-git-9aa4299882500ca3206514bced135c0a1083355d.tar.gz |
Merged revisions 66337,66347,66350,66352,66358 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66337 | vinay.sajip | 2008-09-09 08:42:08 -0500 (Tue, 09 Sep 2008) | 1 line
Issue #3809: Fixed spurious 'test.blah' file left behind by test_logging.
........
r66347 | georg.brandl | 2008-09-09 14:26:00 -0500 (Tue, 09 Sep 2008) | 2 lines
Fix varname in docstring. #3822.
........
r66350 | georg.brandl | 2008-09-09 15:28:31 -0500 (Tue, 09 Sep 2008) | 2 lines
#3472: update Mac-bundled Python version info.
........
r66352 | benjamin.peterson | 2008-09-09 15:55:01 -0500 (Tue, 09 Sep 2008) | 4 lines
Fix #3634 invalid return value from _weakref.ref(Exception).__init__
Reviewers: Amaury, Antoine, Benjamin
........
r66358 | benjamin.peterson | 2008-09-09 18:16:48 -0500 (Tue, 09 Sep 2008) | 1 line
use the latest pygments version
........
Diffstat (limited to 'Lib/test/test_weakref.py')
-rw-r--r-- | Lib/test/test_weakref.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_weakref.py b/Lib/test/test_weakref.py index 108cd7f66c..9821e1ba75 100644 --- a/Lib/test/test_weakref.py +++ b/Lib/test/test_weakref.py @@ -660,6 +660,14 @@ class ReferencesTestCase(TestBase): w = Target() + def test_init(self): + # Issue 3634 + # <weakref to class>.__init__() doesn't check errors correctly + r = weakref.ref(Exception) + self.assertRaises(TypeError, r.__init__, 0, 0, 0, 0, 0) + # No exception should be raised here + gc.collect() + class SubclassableWeakrefTestCase(TestBase): |