Skip to content

Commit

Permalink
test(csvformat): Change quotechar to not glob on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 13, 2024
1 parent 586e38c commit d6df14a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/test_utilities/test_csvformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ def test_asv(self):
], newline_at_eof=False)

def test_quotechar(self):
input_file = io.BytesIO(b'a,b,c\n1*2,3,4\n')
input_file = io.BytesIO(b'a,b,c\n1#2,3,4\n')

with stdin_as_string(input_file):
self.assertLines(['-Q', '*'], [
self.assertLines(['-Q', '#'], [
'a,b,c',
'*1**2*,3,4',
'#1##2#,3,4',
])

input_file.close()
Expand Down Expand Up @@ -157,12 +157,12 @@ def test_asv(self):
], newline_at_eof=False)

def test_quotechar(self):
input_file = io.BytesIO(b'a,b,c\n1*2,3,4\n')
input_file = io.BytesIO(b'a,b,c\n1#2,3,4\n')

with stdin_as_string(input_file):
self.assertLines(['-U', '2', '-Q', '*'], [
'*a*,*b*,*c*',
'*1**2*,3,4',
self.assertLines(['-U', '2', '-Q', '#'], [
'#a#,#b#,#c#',
'#1##2#,3,4',
])

input_file.close()
Expand Down

0 comments on commit d6df14a

Please sign in to comment.