From b6e29d8eaea5599fb41f420b4fbc91905117bfd3 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 11 Mar 2018 14:35:15 +0100 Subject: [PATCH] Be explicit about expected output in test --- tests/unit/utils/test_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/utils/test_version.py b/tests/unit/utils/test_version.py index 6f8475453..163df0e84 100644 --- a/tests/unit/utils/test_version.py +++ b/tests/unit/utils/test_version.py @@ -713,7 +713,7 @@ class TestOsInfo: uname_tuple = ('PosixOS', 'localhost', '1.0', '1.0', 'i386', 'i386') monkeypatch.setattr(version.platform, 'uname', lambda: uname_tuple) ret = version._os_info() - expected = ['OS Version: %s' % ' '.join(uname_tuple)] + expected = ['OS Version: PosixOS localhost 1.0 1.0 i386 i386'] assert ret == expected @pytest.mark.fake_os('unknown')