diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2019-08-30 00:39:35 +0300 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2019-08-29 17:39:35 -0400 |
commit | 60827f82d2ad7d2a94db093c2836595b46937c07 (patch) | |
tree | 45b1fbfe4a349858490d499fad72bc57abe002a2 /tests/util.py | |
parent | a18137385f574603535b29ad935f496d307ab3ae (diff) | |
download | pyopenssl-git-60827f82d2ad7d2a94db093c2836595b46937c07.tar.gz |
Fix for Python 4 (#862)
* Fix for Python 4
* Fix for Python 4
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/util.py b/tests/util.py index 4464379..65b905a 100644 --- a/tests/util.py +++ b/tests/util.py @@ -6,7 +6,7 @@ Helpers for the OpenSSL test suite, largely copied from U{Twisted<http://twistedmatrix.com/>}. """ -from six import PY3 +from six import PY2 # This is the UTF-8 encoding of the SNOWMAN unicode code point. @@ -152,7 +152,7 @@ class EqualityTestsMixin(object): # The type name expected in warnings about using the wrong string type. -if PY3: - WARNING_TYPE_EXPECTED = "str" -else: +if PY2: WARNING_TYPE_EXPECTED = "unicode" +else: + WARNING_TYPE_EXPECTED = "str" |