def test_empty_file_exception(self):
"""pefile should fail parsing empty files."""
# Take a known good file
control_file = os.path.join(REGRESSION_TESTS_DIR, 'empty_file')
self.assertRaises(pefile.PEFormatError, pefile.PE, control_file)
评论列表
文章目录