From 6b7a773f0ff0716a1d8fb31c6cf640088fe62016 Mon Sep 17 00:00:00 2001 From: decalage2 Date: Thu, 31 Oct 2019 14:36:12 +0100 Subject: [PATCH] tests: small fix in test_encoding_handler.py --- tests/common/test_encoding_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/common/test_encoding_handler.py b/tests/common/test_encoding_handler.py index b8bdfc6..0c0bc30 100644 --- a/tests/common/test_encoding_handler.py +++ b/tests/common/test_encoding_handler.py @@ -152,8 +152,8 @@ def run_read(filename): raise ValueError('Reader is not closed outside context') if reader.name != filename: raise ValueError('Wrong filename {} after context'.format(reader.name)) - if reader.isatty(): - raise ValueError('Reader has become a tty!') + if reader.isatty(): + raise ValueError('Reader has become a tty!') # compare text if sys.version_info.major <= 2: # in python2 get encoded byte string -- libgit2 0.21.4