tests: Use a portable /dev/null file name
@@ -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
