diff options
| author | amajorek <devnull@localhost> | 2010-02-28 15:18:30 -0500 |
|---|---|---|
| committer | amajorek <devnull@localhost> | 2010-02-28 15:18:30 -0500 |
| commit | e3ac6b4c99201ee24a909bfbfb5fd888bcd56d8a (patch) | |
| tree | 366e9ec495691f17df8cf85ffb8923c04cddcd3b /tests/test__refcount.py | |
| parent | d3afb8ebc56c3d2f5fb1ece8bc721fd42c03640d (diff) | |
| download | eventlet-e3ac6b4c99201ee24a909bfbfb5fd888bcd56d8a.tar.gz | |
Added clear_sysy_exc_info to eventlet.common.
Portable clearing of last exception information - No-op in 3.x and ys.exc_clear in 2.x
Diffstat (limited to 'tests/test__refcount.py')
| -rw-r--r-- | tests/test__refcount.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test__refcount.py b/tests/test__refcount.py index b5306dc..553971a 100644 --- a/tests/test__refcount.py +++ b/tests/test__refcount.py @@ -4,6 +4,7 @@ are not leaked by the hub. import sys import unittest from pprint import pformat +from eventlet.common import clear_sys_exc_info from eventlet.green import socket from eventlet.green.thread import start_new_thread from eventlet.green.time import sleep @@ -61,7 +62,7 @@ def run_interaction(run_client): def run_and_check(run_client): w = run_interaction(run_client=run_client) - sys.exc_clear() + clear_sys_exc_info() if w(): print pformat(gc.get_referrers(w())) for x in gc.get_referrers(w()): |
