| D | test_pyclbr.py | 22 # members to ignore. 26 def assertListEq(self, l1, l2, ignore): argument 27 ''' succeed iff {l1} - {ignore} == {l2} - {ignore} ''' 28 missing = (set(l1) ^ set(l2)) - set(ignore) 30 print("l1=%r\nl2=%r\nignore=%r" % (l1, l2, ignore), file=sys.stderr) 33 def assertHasattr(self, obj, attr, ignore): argument 34 ''' succeed iff hasattr(obj,attr) or attr in ignore. ''' 35 if attr in ignore: return 41 def assertHaskey(self, obj, key, ignore): argument 42 ''' succeed iff key in obj or key in ignore. ''' [all …]
|