def test_failing_import_execfile():
-> dest = datadir / 'failingimport.py'
col = py.test.collect.Module(dest)
py.test.raises(ImportError, col.run)