Skip to content

Increase test coverage in csv module. #138621

@JanEricNitschke

Description

@JanEricNitschke

The csv (python) module currently has 10 untested lines:

Name         Stmts   Miss Branch BrPart  Cover   Missing
--------------------------------------------------------
Lib/csv.py     262     10     96      8    95%   107->109, 164-165, 171, 255, 305->307, 312->314, 316-317, 327, 431, 434->443, 474, 511
--------------------------------------------------

Five of these are fairly easily testable. Specifically the Sniffer no delimiter error, DictReader fielname setter and case where fieldname determination from the first row fails because the iterator is exhausted.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-featureA feature request or enhancement

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions