Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-129374: adds quoting detection to csv sniffer#134416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
aterrel wants to merge4 commits intopython:main
base:main
Choose a base branch
Loading
fromaterrel:gh-129374-csv-quoted-strings
Open
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Fix test to reflect number output
  • Loading branch information
@aterrel
aterrel committedMay 21, 2025
commitbf12351f2eb3d42c65e2a701944d628cc032b6b8
3 changes: 1 addition & 2 deletionsLib/test/test_csv.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1348,7 +1348,7 @@ def test_issue129374_writing_quoted_strings(self):
x = list(csv.reader([s], d))
f = StringIO()
csv.writer(f,d).writerows(x)
self.assertEqual(f.getvalue(), '42,"hello","world",-1\r\n')
self.assertEqual(f.getvalue(), '42.0,"hello","world",-1.0\r\n')

def test_has_header(self):
sniffer = csv.Sniffer()
Expand DownExpand Up@@ -1427,7 +1427,6 @@ def test_quote_detection(self):
sniffer = csv.Sniffer()
dialect = sniffer.sniff(self.sample1)
self.assertEqual(dialect.quoting, csv.QUOTE_NONE)
breakpoint()
dialect = sniffer.sniff(self.sample2)
self.assertEqual(dialect.quoting, csv.QUOTE_ALL)

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp