Skip to content

compress test seems broken #1177

@t-bltg

Description

@t-bltg

Reproducer:

julia> using CSV
julia> default_table = (col1=[1,2,3], col2=[4,5,6], col3=[7,8,9])

julia> io = IOBuffer()
julia> CSV.write(io, default_table; compress=true)  # compression

julia> take!(io) |> println
UInt8[]  # nothing written !

julia> io = IOBuffer()
julia> CSV.write(io, default_table; compress=false)  # no compression

julia> take!(io) |> println
UInt8[0x63, 0x6f, 0x6c, 0x31, 0x2c, 0x63, 0x6f, 0x6c, 0x32, 0x2c, 0x63, 0x6f, 0x6c, 0x33, 0x0a, 0x31, 0x2c, 0x34, 0x2c, 0x37, 0x0a, 0x32, 0x2c, 0x35, 0x2c, 0x38, 0x0a, 0x33, 0x2c, 0x36, 0x2c, 0x39, 0x0a]

Encountered in #1176.
The test also seem to fail a pending previous PR: #1173, with the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions