Bläddra i källkod

Investigate paths in test

Thomas Kluyver 4 år sedan
förälder
incheckning
a9cbd890fb
2 ändrade filer med 3 tillägg och 0 borttagningar
  1. 1 0
      nsist/tests/console_example/sample_printer/__init__.py
  2. 2 0
      nsist/tests/test_main.py

+ 1 - 0
nsist/tests/console_example/sample_printer/__init__.py

@@ -10,6 +10,7 @@ def main():
     info = {
         'py_executable': sys.executable,
         'py_version': sys.version,
+        'sys_path': sys.path,
         'data_file_path': data_file,
         'data_file_content': data_from_file,
     }

+ 2 - 0
nsist/tests/test_main.py

@@ -82,11 +82,13 @@ def test_installer(console_eg_copy, tmp_path):
     res = run([str(inst_python), str(inst_launch_script)],
               check=True, stdout=PIPE)
     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_version'].startswith('3.8.3')  # Set in installer.cfg
     assert json_res['data_file_path'].endswith('data.txt')
     assert json_res['data_file_content'] == 'newt'
+    1/0
 
     # Run through command-line wrapper
     res2 = run([str(inst_exe_wrapper)], check=True, stdout=PIPE)