示例#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()
示例#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()
示例#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()
示例#4
0
文件: __init__.py 项目: 0x/kivi-tests
 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()
示例#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()