Lines Matching refs:ignore
26 def assertListEq(self, l1, l2, ignore): argument
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
35 if attr in ignore: return
41 def assertHaskey(self, obj, key, ignore): argument
43 if key in ignore: return
48 def assertEqualsOrIgnored(self, a, b, ignore): argument
50 if a not in ignore and b not in ignore:
53 def checkModule(self, moduleName, module=None, ignore=()): argument
59 ignore = set(ignore) | set(['object'])
85 if name in ignore:
87 self.assertHasattr(module, name, ignore)
104 self.assertListEq(real_bases, pyclbr_bases, ignore)
121 self.assertListEq(foundMethods, actualMethods, ignore)
125 ignore)
142 self.assertHaskey(dict, name, ignore)
148 self.checkModule('doctest', ignore=("TestResults", "_SpoofOut",
150 self.checkModule('difflib', ignore=("Match",))
153 self.checkModule('test.pyclbr_input', ignore=['om'])
220 cm('random', ignore=('Random',)) # from _random import Random as CoreGenerator
221 cm('cgi', ignore=('log',)) # set with = in module
222 cm('pickle', ignore=('partial', 'PickleBuffer'))
223 cm('aifc', ignore=('_aifc_params',)) # set with = in module
224 cm('sre_parse', ignore=('dump', 'groups', 'pos')) # from sre_constants import *; property
226 cm('pydoc', ignore=('input', 'output',)) # properties