Skip to content

Testsuite failing starting with 7.0.0rc1 #188

Description

Starting with version 7.0.0rc1, the testsuite is failing for me on openSUSE Tumbleweed:

[   35s] =================================== FAILURES ===================================
[   35s] ________________________ TestOutput.test_out_yaml_byte _________________________
[   35s] 
[   35s] self = <tests.test_output.TestOutput testMethod=test_out_yaml_byte>
[   35s] 
[   35s]         def test_out_yaml_byte(self):
[   35s]             output_producer = OutputProducer(cli_ctx=self.mock_ctx)
[   35s]             output_producer.out(CommandResultItem({'active': True, 'contents': b'0b1f6472'}),
[   35s]                                 formatter=format_yaml, out_file=self.io)
[   35s]             self.assertEqual(normalize_newlines(self.io.getvalue()), normalize_newlines(
[   35s]                 """active: true
[   35s]     contents: !!binary |
[   35s]       MGIxZjY0NzI=
[   35s] >   """))
[   35s] E   AssertionError: 'active: true\ncontents: 0b1f6472\n' != 'active: true\ncontents: !!binary |\n  MGIxZjY0NzI=\n'
[   35s] 
[   35s] tests/test_output.py:132: AssertionError
[   35s] _____________________ TestOutput.test_out_yaml_byte_empty ______________________
[   35s] 
[   35s] self = <tests.test_output.TestOutput testMethod=test_out_yaml_byte_empty>
[   35s] 
[   35s]         def test_out_yaml_byte_empty(self):
[   35s]             output_producer = OutputProducer(cli_ctx=self.mock_ctx)
[   35s]             output_producer.out(CommandResultItem({'active': True, 'contents': b''}),
[   35s]                                 formatter=format_yaml, out_file=self.io)
[   35s]             self.assertEqual(normalize_newlines(self.io.getvalue()), normalize_newlines(
[   35s]                 """active: true
[   35s]     contents: !!binary ""
[   35s] >   """))
[   35s] E   AssertionError: "active: true\ncontents: ''\n" != 'active: true\ncontents: !!binary ""\n'
[   35s] 
[   35s] tests/test_output.py:141: AssertionError
[   35s] =============== 2 failed, 190 passed, 40 skipped in 1.54 seconds ===============

This is rather unfortunate as version 7.0.0rc1 is a dependency of the latest version of azure-cli 2.3.1.

CC Jiashuo Li (@jiasli)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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