From af8ab0af2bedd2a78eed6424d67bcf2d4d6b6586 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sat, 9 Jan 2021 01:20:49 +0000 Subject: [PATCH] Update test to look in stderr for warnings --- test/test_macos_archs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_macos_archs.py b/test/test_macos_archs.py index 590eb5b9..7037a97e 100644 --- a/test/test_macos_archs.py +++ b/test/test_macos_archs.py @@ -53,9 +53,9 @@ def test_cross_compiled_test(tmp_path, capfd, build_universal2): assert 'running tests on x86_64' in captured.out assert 'running tests on arm64' not in captured.out if build_universal2: - assert 'While universal2 wheels can be built on x86_64, the arm64 part of them cannot currently be tested' in captured.out + assert 'While universal2 wheels can be built on x86_64, the arm64 part of them cannot currently be tested' in captured.err else: - assert 'While arm64 wheels can be built on x86_64, they cannot be tested' in captured.out + assert 'While arm64 wheels can be built on x86_64, they cannot be tested' in captured.err elif platform.machine() == 'arm64': # ensure that tests were run on both x86_64 and arm64 assert 'running tests on x86_64' in captured.out