File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 66"""
77
88import codecs
9- import ctypes
109from collections import OrderedDict
1110import csv
1211from datetime import datetime
@@ -1905,20 +1904,15 @@ def test_suppress_error_output(all_parsers, capsys):
19051904 assert captured .err == ""
19061905
19071906
1908- def __windows_ansi_encoding_not_cp1252 ():
1909- if compat .is_platform_windows ():
1910- ansi_codepage = ctypes .cdll .kernel32 .GetACP ()
1911- return ansi_codepage != 1252 and not compat .PY36
1912- return False
1913-
1914- @pytest .mark .skipif (__windows_ansi_encoding_not_cp1252 (),
1915- reason = "On Python < 3.6 won't pass on non-1252 codepage" )
1916- def test_filename_with_special_chars (all_parsers ):
1907+ @pytest .mark .skipif (compat .is_platform_windows () and not compat .PY36 ,
1908+ reason = "On Python < 3.6 won't pass on Windows" )
1909+ @pytest .mark .parametrize ("filename" , ["sé-es-vé.csv" , "ru-sй.csv" ])
1910+ def test_filename_with_special_chars (all_parsers , filename ):
19171911 # see gh-15086.
19181912 parser = all_parsers
19191913 df = DataFrame ({"a" : [1 , 2 , 3 ]})
19201914
1921- with tm .ensure_clean ("sé-es-vé-sй.csv" ) as path :
1915+ with tm .ensure_clean (filename ) as path :
19221916 df .to_csv (path , index = False )
19231917
19241918 result = parser .read_csv (path )
You can’t perform that action at this time.
0 commit comments