Beispiel #1
0
 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()
Beispiel #2
0
 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()
Beispiel #3
0
 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()
Beispiel #4
0
 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()
Beispiel #5
0
 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()