mirror of
				https://github.com/Telecominfraproject/oopt-gnpy.git
				synced 2025-11-03 19:47:46 +00:00 
			
		
		
		
	tests: Use a portable /dev/null file name
Bug: https://github.com/Telecominfraproject/oopt-gnpy/issues/358 Change-Id: Icbca94682ce0ded860ba6397e4445651b6a61f32
This commit is contained in:
		@@ -39,7 +39,7 @@ def test_run_wrapper(program):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def test_conversion_xls():
 | 
					def test_conversion_xls():
 | 
				
			||||||
    proc = subprocess.run(
 | 
					    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)
 | 
					        stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True, universal_newlines=True)
 | 
				
			||||||
    assert proc.stderr == ''
 | 
					    assert proc.stderr == ''
 | 
				
			||||||
    assert '/dev/null' in proc.stdout
 | 
					    assert os.path.devnull in proc.stdout
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user