Skip to content

Commit

Permalink
fix assertion to reflect write_wrapper is not installed on Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
xflr6 committed Jul 13, 2021
1 parent 8d56b3a commit 1a882a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_writer(mocker, py2, filepath, inner_encoding,
if encoding is False:
if py2:
expected_type = UnicodeTextWriter
elif (fmtparams.get('escapechar')
elif (sys.version_info < (3, 10) and fmtparams.get('escapechar')
and fmtparams.get('quoting', csv.QUOTE_MINIMAL) != csv.QUOTE_NONE):
expected_type = _UnicodeTextWriter
else:
Expand Down

0 comments on commit 1a882a0

Please sign in to comment.