def testFindModule(self): with pytest.raises(ImportError): dep.find_module('no-such.-thing') with pytest.raises(ImportError): dep.find_module('setuptools.non-existent') f, p, i = dep.find_module('setuptools.tests') f.close()
def testFindModule(self): self.assertRaises(ImportError, dep.find_module, 'no-such.-thing') self.assertRaises(ImportError, dep.find_module, 'setuptools.non-existent') f, p, i = dep.find_module('setuptools.tests') f.close()
def testFindModule(self): self.assertRaises(ImportError, dep.find_module, 'no-such.-thing') self.assertRaises(ImportError, dep.find_module, 'setuptools.non-existent') f,p,i = dep.find_module('setuptools.tests') f.close()
def testFindModule(self): self.assertRaises(ImportError, find_module, "no-such.-thing") self.assertRaises(ImportError, find_module, "setuptools.non-existent") f, p, i = find_module("setuptools.tests") f.close()