Skip to content

Commit

Permalink
Fixed testing
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Dec 18, 2019
1 parent 18f46da commit 103df7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/appier/test/legacy.py
Expand Up @@ -146,9 +146,9 @@ def test_unquote(self):
appier.legacy.bytes("%E4%BD%A0%E5%A5%BD%E4%B8%96%E7%95%8C"),
encoding = "utf-8"
)
if appier.legacy.PYTHON_3 and not appier.legacy.PYTHON_39:
if not appier.legacy.PYTHON_3 or not appier.legacy.PYTHON_39:
self.assertRaises(TypeError, method)
else:
elif appier.legacy.PYTHON_3:
self.assertEqual(method(), "你好世界")

def test_tobytes(self):
Expand Down

0 comments on commit 103df7b

Please sign in to comment.