Yury Selivanov added the comment:
reflesk with only functools:
def test_lru_type_error(self):
@functools.lru_cache(maxsize=None)
def foo(o):
raise TypeError
with self.assertRaises(TypeError):
foo([])
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28649>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com