(python_dir)
| 198 | |
| 199 | |
| 200 | def test_unhealthy_with_version_change(python_dir): |
| 201 | prefix, tmpdir = python_dir |
| 202 | |
| 203 | python.install_environment(prefix, C.DEFAULT, ()) |
| 204 | |
| 205 | with open(prefix.path('py_env-default/pyvenv.cfg'), 'a+') as f: |
| 206 | f.write('version_info = 1.2.3\n') |
| 207 | |
| 208 | ret = python.health_check(prefix, C.DEFAULT) |
| 209 | assert ret == ( |
| 210 | f'virtualenv python version did not match created version:\n' |
| 211 | f'- actual version: {python._version_info(sys.executable)}\n' |
| 212 | f'- expected version: 1.2.3\n' |
| 213 | ) |
| 214 | |
| 215 | |
| 216 | def test_unhealthy_system_version_changes(python_dir): |
nothing calls this directly
no test coverage detected