Public bug reported:

```
FAIL: decode_test.go:775: S.TestDecoderSingleDocument
...
test 60: "a: 1"
test 61: "a: 1.0"
decode_test.go:790:
    c.Assert(value.Elem().Interface(), DeepEquals, item.value)
... 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(value.Elem().Interface(), DeepEquals, item.value, Commentf("error: 
%v", err))
... 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   ExampleUnmarshal_embedded
--- PASS: ExampleUnmarshal_embedded (0.00s)
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

** Affects: golang-yaml.v2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: update-excuse

** Bug watch added: github.com/go-yaml/yaml/issues #629
   https://github.com/go-yaml/yaml/issues/629

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1883770

Title:
  Tests fail on s390x and go >= 1.13

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-yaml.v2/+bug/1883770/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to