File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,22 +114,22 @@ end
114114@test_throws InvalidEncodingError p = StringDecoder (IOBuffer (), " nonexistent_encoding" )
115115
116116try
117- p = StringEncoder (IOBuffer (), " nonexistent_encoding" )
117+ p = StringEncoder (IOBuffer (), " nonexistent_encoding" , " absurd_encoding " )
118118catch err
119119 @test isa (err, InvalidEncodingError)
120120 io = IOBuffer ()
121121 showerror (io, err)
122122 @test takebuf_string (io) ==
123- " Conversion from UTF-8 to nonexistent_encoding not supported by iconv implementation, check that specified encodings are correct"
123+ " Conversion from absurd_encoding to nonexistent_encoding not supported by iconv implementation, check that specified encodings are correct"
124124end
125125try
126- p = StringDecoder (IOBuffer (), " nonexistent_encoding" )
126+ p = StringDecoder (IOBuffer (), " nonexistent_encoding" , " absurd_encoding " )
127127catch err
128128 @test isa (err, InvalidEncodingError)
129129 io = IOBuffer ()
130130 showerror (io, err)
131131 @test takebuf_string (io) ==
132- " Conversion from nonexistent_encoding to UTF-8 not supported by iconv implementation, check that specified encodings are correct"
132+ " Conversion from nonexistent_encoding to absurd_encoding not supported by iconv implementation, check that specified encodings are correct"
133133end
134134
135135mktemp () do path, io
You can’t perform that action at this time.
0 commit comments