From 797a0856ecfc0d0229e773b4853b2bbd14574d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= Date: Tue, 15 Jun 2021 13:30:54 +0200 Subject: [PATCH] tests: Use a portable /dev/null file name Bug: https://github.com/Telecominfraproject/oopt-gnpy/issues/358 Change-Id: Icbca94682ce0ded860ba6397e4445651b6a61f32 --- tests/test_invocation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_invocation.py b/tests/test_invocation.py index 0c100011..41c3e3ed 100644 --- a/tests/test_invocation.py +++ b/tests/test_invocation.py @@ -39,7 +39,7 @@ def test_run_wrapper(program): def test_conversion_xls(): proc = subprocess.run( - ('gnpy-convert-xls', SRC_ROOT / 'tests' / 'data' / 'testTopology.xls', '--output', '/dev/null'), + ('gnpy-convert-xls', SRC_ROOT / 'tests' / 'data' / 'testTopology.xls', '--output', os.path.devnull), stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True, universal_newlines=True) assert proc.stderr == '' - assert '/dev/null' in proc.stdout + assert os.path.devnull in proc.stdout