Tests fail on s390x and go >= 1.13
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Go |
Fix Released
|
Unknown
|
|||
golang-1.13 (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
golang-1.14 (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
golang-yaml.v2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
```
FAIL: decode_test.go:775: S.TestDecoderSi
...
test 60: "a: 1"
test 61: "a: 1.0"
decode_test.go:790:
c.Assert(
... obtained *struct { A int } = &struct { A int }{A:0}
... expected *struct { A int } = &struct { A int }{A:1}
...
FAIL: decode_test.go:750: S.TestUnmarshal
...
test 60: "a: 1"
test 61: "a: 1.0"
decode_test.go:759:
c.Assert(
... obtained *struct { A int } = &struct { A int }{A:0}
... expected *struct { A int } = &struct { A int }{A:1}
... error: yaml: unmarshal errors:
line 1: cannot unmarshal !!float `1.0` into int
OOPS: 30 passed, 2 FAILED
--- FAIL: Test (7.21s)
=== RUN ExampleUnmarsha
--- PASS: ExampleUnmarsha
FAIL
exit status 1
FAIL gopkg.in/yaml.v2 7.274s
```
Further experimentation with older releases of ubuntu, but only installing golang-go from ubuntu, and using golang-yaml.v2's upstream git repo for the test with "go test -v", showed that the tests:
- PASS: go 1.10~4ubuntu1, 1.12~1ubuntu1
- FAIL: go 1.13~1ubuntu2, 1.14~1
Changed in golang: | |
status: | Unknown → New |
Changed in golang: | |
status: | New → Fix Released |
Upstream bug report: https:/ /github. com/go- yaml/yaml/ issues/ 629