[Python-modules-team] Bug#918893: pyyaml: some build-time test failures are ignored
Simon McVittie
smcv at debian.org
Thu Jan 10 11:30:16 GMT 2019
Source: pyyaml
Version: 3.13-1
Severity: normal
Building pyyaml seems to be succeeding even though some unit tests fail.
I'm not sure why. Similar test failures are seen for 2.7 debug and 3.7
plain, but for some reason everything succeeds in the 3.7 debug build.
This is not a regression with my recent changes: the same thing can be
seen in buildd logs like
<https://buildd.debian.org/status/fetch.php?pkg=pyyaml&arch=arm64&ver=3.13-1&stamp=1541232471&raw=0>
and <https://buildd.debian.org/status/fetch.php?pkg=pyyaml&arch=mipsel&ver=3.13-1&stamp=1541256533&raw=0>.
-- running tests for 2.7 plain --
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................FF..F.....F....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
===========================================================================
test_emitter_styles_ext(tests/data/spec-07-09.data, tests/data/spec-07-09.canonical): FAILURE
Traceback (most recent call last):
File "tests/lib/test_appliance.py", line 65, in execute
function(verbose=verbose, *filenames)
File "tests/lib/test_yaml_ext.py", line 240, in wrapper
function(*args, **kwds)
File "tests/lib/test_emitter.py", line 62, in test_emitter_styles
_compare_events(events, new_events)
File "tests/lib/test_emitter.py", line 15, in _compare_events
assert event1.value == event2.value, (event1, event2)
AssertionError: see below
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(ScalarEvent(anchor=None, tag=u'tag:yaml.org,2002:str', implicit=(False, False), value=u'foo'),
ScalarEvent(anchor=None, tag=u'tag:yaml.org,2002:str', implicit=(False, False), value=u'foo %YAML 1.1'))
---------------------------------------------------------------------------
tests/data/spec-07-09.data:
---
foo
...
# Repeated end marker.
...
---
bar
# No end marker.
---
baz
...
---------------------------------------------------------------------------
tests/data/spec-07-09.canonical:
%YAML 1.1
---
!!str "foo"
%YAML 1.1
---
!!str "bar"
%YAML 1.1
---
!!str "baz"
===========================================================================
test_emitter_styles_ext(tests/data/spec-07-10.data, tests/data/spec-07-10.canonical): FAILURE
Traceback (most recent call last):
File "tests/lib/test_appliance.py", line 65, in execute
function(verbose=verbose, *filenames)
File "tests/lib/test_yaml_ext.py", line 240, in wrapper
function(*args, **kwds)
File "tests/lib/test_emitter.py", line 62, in test_emitter_styles
_compare_events(events, new_events)
File "tests/lib/test_emitter.py", line 15, in _compare_events
assert event1.value == event2.value, (event1, event2)
AssertionError: see below
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(ScalarEvent(anchor=None, tag=u'tag:yaml.org,2002:str', implicit=(False, False), value=u'Root flow scalar'),
ScalarEvent(anchor=None, tag=u'tag:yaml.org,2002:str', implicit=(False, False), value=u'Root flow scalar %YAML 1.1'))
---------------------------------------------------------------------------
tests/data/spec-07-10.data:
"Root flow
scalar"
--- !!str >
Root block
scalar
---
# Root collection:
foo : bar
... # Is optional.
---
# Explicit document may be empty.
---------------------------------------------------------------------------
tests/data/spec-07-10.canonical:
%YAML 1.1
---
!!str "Root flow scalar"
%YAML 1.1
---
!!str "Root block scalar\n"
%YAML 1.1
---
!!map {
? !!str "foo"
: !!str "bar"
}
---
#!!str ""
!!null ""
===========================================================================
test_emitter_styles_ext(tests/data/spec-07-13.data, tests/data/spec-07-13.canonical): FAILURE
Traceback (most recent call last):
File "tests/lib/test_appliance.py", line 65, in execute
function(verbose=verbose, *filenames)
File "tests/lib/test_yaml_ext.py", line 240, in wrapper
function(*args, **kwds)
File "tests/lib/test_emitter.py", line 62, in test_emitter_styles
_compare_events(events, new_events)
File "tests/lib/test_emitter.py", line 15, in _compare_events
assert event1.value == event2.value, (event1, event2)
AssertionError: see below
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(ScalarEvent(anchor=None, tag=u'!foo', implicit=(False, False), value=u'No directives'),
ScalarEvent(anchor=None, tag=u'!foo', implicit=(False, False), value=u'No directives %TAG ! %21foo'))
---------------------------------------------------------------------------
tests/data/spec-07-13.data:
! "First document"
---
!foo "No directives"
%TAG ! !foo
---
!bar "With directives"
%YAML 1.1
---
!baz "Reset settings"
---------------------------------------------------------------------------
tests/data/spec-07-13.canonical:
%YAML 1.1
---
!!str "First document"
---
!<!foo> "No directives"
---
!<!foobar> "With directives"
---
!<!baz> "Reset settings"
===========================================================================
test_emitter_styles_ext(tests/data/spec-08-08.data, tests/data/spec-08-08.canonical): FAILURE
Traceback (most recent call last):
File "tests/lib/test_appliance.py", line 65, in execute
function(verbose=verbose, *filenames)
File "tests/lib/test_yaml_ext.py", line 240, in wrapper
function(*args, **kwds)
File "tests/lib/test_emitter.py", line 62, in test_emitter_styles
_compare_events(events, new_events)
File "tests/lib/test_emitter.py", line 15, in _compare_events
assert event1.value == event2.value, (event1, event2)
AssertionError: see below
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(ScalarEvent(anchor=None, tag=u'tag:yaml.org,2002:str', implicit=(False, False), value=u'foo bar'),
ScalarEvent(anchor=None, tag=u'tag:yaml.org,2002:str', implicit=(False, False), value=u'foo bar %YAML 1.1'))
---------------------------------------------------------------------------
tests/data/spec-08-08.data:
---
foo:
"bar
baz"
---
"foo
bar"
---
foo
bar
--- |
foo
...
---------------------------------------------------------------------------
tests/data/spec-08-08.canonical:
%YAML 1.1
---
!!map {
? !!str "foo"
: !!str "bar baz"
}
%YAML 1.1
---
!!str "foo bar"
%YAML 1.1
---
!!str "foo bar"
%YAML 1.1
---
!!str "foo\n"
===========================================================================
TESTS: 2573
FAILURES: 4
More information about the Python-modules-team
mailing list