diff --git a/tests/test_cli.py b/tests/test_cli.py index 57b2d5f..5e6ab79 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -14,7 +14,7 @@ def test_console_script(): command, stdout=subprocess.PIPE).communicate()[0] with open('tests/fixtures/README.txt') as f: expect = ''.join(f.readlines()) - if type(result) == bytes: + if isinstance(result, bytes): result = result.decode('utf-8') assert result == expect @@ -27,6 +27,6 @@ def test_version_string(): command[2] = 'textile.__main__' result = subprocess.Popen( command, stdout=subprocess.PIPE).communicate()[0] - if type(result) == bytes: + if isinstance(result, bytes): result = result.decode('utf-8') assert result.strip() == textile.__version__