|
@@ -82,15 +82,19 @@ def test_installer(console_eg_copy, tmp_path):
|
|
res = run([str(inst_python), str(inst_launch_script)],
|
|
res = run([str(inst_python), str(inst_launch_script)],
|
|
check=True, stdout=PIPE)
|
|
check=True, stdout=PIPE)
|
|
json_res = json.loads(res.stdout.decode('utf-8', 'replace'))
|
|
json_res = json.loads(res.stdout.decode('utf-8', 'replace'))
|
|
|
|
+ print(res.stdout.decode('utf-8', 'replace'))
|
|
|
|
|
|
assert json_res['py_executable'] == str(inst_python)
|
|
assert json_res['py_executable'] == str(inst_python)
|
|
- assert json_res['py_version'].startswith('3.6.3') # Set in installer.cfg
|
|
|
|
|
|
+ assert json_res['py_version'].startswith('3.8.3') # Set in installer.cfg
|
|
assert json_res['data_file_path'].endswith('data.txt')
|
|
assert json_res['data_file_path'].endswith('data.txt')
|
|
assert json_res['data_file_content'] == 'newt'
|
|
assert json_res['data_file_content'] == 'newt'
|
|
|
|
|
|
# Run through command-line wrapper
|
|
# Run through command-line wrapper
|
|
res2 = run([str(inst_exe_wrapper)], check=True, stdout=PIPE)
|
|
res2 = run([str(inst_exe_wrapper)], check=True, stdout=PIPE)
|
|
|
|
+ print("Command line wrapper -----------------------------------------")
|
|
|
|
+ print(res2.stdout.decode('utf-8', 'replace'))
|
|
json_res2 = json.loads(res2.stdout.decode('utf-8', 'replace'))
|
|
json_res2 = json.loads(res2.stdout.decode('utf-8', 'replace'))
|
|
|
|
+
|
|
assert json_res2 == json_res
|
|
assert json_res2 == json_res
|
|
|
|
|
|
# Check command-line wrapper is on PATH
|
|
# Check command-line wrapper is on PATH
|