diff options
author | Armin Rigo <arigo@tunes.org> | 2014-06-24 09:45:59 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2014-06-24 09:45:59 +0200 |
commit | 91038d30fbc3ee96b1b0194ee2e51b274b49287e (patch) | |
tree | c718ff1d22e1b0b26438844ab2c781cc134b3a3f /pypy/module/_weakref | |
parent | Fix a latent memory leak: in a cffi callback invoked in an (diff) | |
download | pypy-91038d30fbc3ee96b1b0194ee2e51b274b49287e.tar.gz pypy-91038d30fbc3ee96b1b0194ee2e51b274b49287e.tar.bz2 pypy-91038d30fbc3ee96b1b0194ee2e51b274b49287e.zip |
Fix issue #1801
Diffstat (limited to 'pypy/module/_weakref')
-rw-r--r-- | pypy/module/_weakref/test/test_weakref.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pypy/module/_weakref/test/test_weakref.py b/pypy/module/_weakref/test/test_weakref.py index 071ee2bda0..f1dfbed7be 100644 --- a/pypy/module/_weakref/test/test_weakref.py +++ b/pypy/module/_weakref/test/test_weakref.py @@ -15,6 +15,10 @@ class AppTestWeakref(object): gc.collect() assert ref() is None + def test_missing_arg(self): + import _weakref + raises(TypeError, _weakref.ref) + def test_callback(self): import _weakref, gc class A(object): |