Commit a85860db67b4e76f7788f15726393206df2da2be
1 parent
1ac0bf80
tests: fixed exception in test_encoding_handler.py
Showing
1 changed file
with
3 additions
and
2 deletions
tests/common/test_encoding_handler.py
| ... | ... | @@ -152,8 +152,9 @@ def run_read(filename): |
| 152 | 152 | raise ValueError('Reader is not closed outside context') |
| 153 | 153 | if reader.name != filename: |
| 154 | 154 | raise ValueError('Wrong filename {} after context'.format(reader.name)) |
| 155 | - if reader.isatty(): | |
| 156 | - raise ValueError('Reader has become a tty!') | |
| 155 | + # the following test raises an exception because reader is closed, so isatty cannot be called: | |
| 156 | + # if reader.isatty(): | |
| 157 | + # raise ValueError('Reader has become a tty!') | |
| 157 | 158 | |
| 158 | 159 | # compare text |
| 159 | 160 | if sys.version_info.major <= 2: # in python2 get encoded byte string | ... | ... |