Commit 6b7a773f0ff0716a1d8fb31c6cf640088fe62016
1 parent
830f098b
tests: small fix in test_encoding_handler.py
Showing
1 changed file
with
2 additions
and
2 deletions
tests/common/test_encoding_handler.py
| @@ -152,8 +152,8 @@ def run_read(filename): | @@ -152,8 +152,8 @@ def run_read(filename): | ||
| 152 | raise ValueError('Reader is not closed outside context') | 152 | raise ValueError('Reader is not closed outside context') |
| 153 | if reader.name != filename: | 153 | if reader.name != filename: |
| 154 | raise ValueError('Wrong filename {} after context'.format(reader.name)) | 154 | raise ValueError('Wrong filename {} after context'.format(reader.name)) |
| 155 | - if reader.isatty(): | ||
| 156 | - raise ValueError('Reader has become a tty!') | 155 | + if reader.isatty(): |
| 156 | + raise ValueError('Reader has become a tty!') | ||
| 157 | 157 | ||
| 158 | # compare text | 158 | # compare text |
| 159 | if sys.version_info.major <= 2: # in python2 get encoded byte string | 159 | if sys.version_info.major <= 2: # in python2 get encoded byte string |