diff --git a/shadowsocks/crypto/m2.py b/shadowsocks/crypto/m2.py index 8022f81..4c7e148 100644 --- a/shadowsocks/crypto/m2.py +++ b/shadowsocks/crypto/m2.py @@ -83,10 +83,11 @@ def check_env(): # skip this test on pypy and Python 3 try: import __pypy__ + del __pypy__ from nose.plugins.skip import SkipTest raise SkipTest except ImportError: - __pypy__ = None + pass if bytes != str: from nose.plugins.skip import SkipTest raise SkipTest