(python_dir)
| 230 | |
| 231 | |
| 232 | def test_unhealthy_old_virtualenv(python_dir): |
| 233 | prefix, tmpdir = python_dir |
| 234 | |
| 235 | python.install_environment(prefix, C.DEFAULT, ()) |
| 236 | |
| 237 | # simulate "old" virtualenv by deleting this file |
| 238 | os.remove(prefix.path('py_env-default/pyvenv.cfg')) |
| 239 | |
| 240 | ret = python.health_check(prefix, C.DEFAULT) |
| 241 | assert ret == 'pyvenv.cfg does not exist (old virtualenv?)' |
| 242 | |
| 243 | |
| 244 | def test_unhealthy_unexpected_pyvenv(python_dir): |
nothing calls this directly
no test coverage detected