예제 #1
0
파일: test_launch.py 프로젝트: hagarwa3/rwt
def test_with_path_result_code(tmpdir):
    """
	result code should be non-zero on error
	"""
    params = ['-c', "raise ValueError()"]
    res = launch.with_path(str(tmpdir), params)
    assert res > 0
예제 #2
0
파일: test_launch.py 프로젝트: jaraco/rwt
def test_with_path_result_code(tmpdir):
	"""
	result code should be non-zero on error
	"""
	params = ['-c', "raise ValueError()"]
	res = launch.with_path(str(tmpdir), params)
	assert res > 0
예제 #3
0
파일: test_launch.py 프로젝트: hagarwa3/rwt
def test_with_path(tmpdir, capfd):
    params = ['-c', 'import sys; print(sys.path)']
    res = launch.with_path(str(tmpdir), params)
    assert res == 0
    out, err = capfd.readouterr()
    assert str(tmpdir) in out
예제 #4
0
def test_with_path(tmpdir, capfd):
    params = ['-c', 'import sys; sys.stdout.write("\\n".join(sys.path))']
    res = launch.with_path(str(tmpdir), params)
    assert res == 0
    out, err = capfd.readouterr()
    assert tmpdir in out.split(os.linesep)
예제 #5
0
파일: test_launch.py 프로젝트: jaraco/rwt
def test_with_path(tmpdir, capfd):
	params = ['-c', 'import sys; print(sys.path)']
	res = launch.with_path(str(tmpdir), params)
	assert res == 0
	out, err = capfd.readouterr()
	assert str(tmpdir) in out