skip_if_missing()classPdepsTests(unittest.TestCase):@classmethoddefsetUpClass(self):self.pdeps=import_tool('pdeps')deftest_process_errors(self):# Issue #14492: m_import.match(line) can be None.withtempfile.TemporaryDirectory()astmpdir:fn=os.path.join(tmpdir,'foo')withopen(fn,'w')asstream:stream.write("#!/this/will/fail")self.pdeps.process(fn,{})deftest_inverse_attribute_error(self):# Issue #14492: this used to fail with an AttributeError.self.pdeps.inverse({'a':[]})if__name__=='__main__':unittest.main()