(python_dir)
| 242 | |
| 243 | |
| 244 | def test_unhealthy_unexpected_pyvenv(python_dir): |
| 245 | prefix, tmpdir = python_dir |
| 246 | |
| 247 | python.install_environment(prefix, C.DEFAULT, ()) |
| 248 | |
| 249 | # simulate a buggy environment build (I don't think this is possible) |
| 250 | with open(prefix.path('py_env-default/pyvenv.cfg'), 'w'): |
| 251 | pass |
| 252 | |
| 253 | ret = python.health_check(prefix, C.DEFAULT) |
| 254 | assert ret == "created virtualenv's pyvenv.cfg is missing `version_info`" |
| 255 | |
| 256 | |
| 257 | def test_unhealthy_then_replaced(python_dir): |
nothing calls this directly
no test coverage detected