Lines Matching full:ignore
23 # members to ignore.
27 def assertListEq(self, l1, l2, ignore): argument
28 ''' succeed iff {l1} - {ignore} == {l2} - {ignore} '''
29 missing = (set(l1) ^ set(l2)) - set(ignore)
31 print("l1=%r\nl2=%r\nignore=%r" % (l1, l2, ignore), file=sys.stderr)
34 def assertHasattr(self, obj, attr, ignore): argument
35 ''' succeed iff hasattr(obj,attr) or attr in ignore. '''
36 if attr in ignore: return
42 def assertHaskey(self, obj, key, ignore): argument
43 ''' succeed iff key in obj or key in ignore. '''
44 if key in ignore: return
49 def assertEqualsOrIgnored(self, a, b, ignore): argument
50 ''' succeed iff a == b or a in ignore or b in ignore '''
51 if a not in ignore and b not in ignore:
54 def checkModule(self, moduleName, module=None, ignore=()): argument
57 ignore are ignored. If no module is provided, the appropriate
60 ignore = set(ignore) | set(['object'])
87 if name in ignore:
89 self.assertHasattr(module, name, ignore)
106 self.assertListEq(real_bases, pyclbr_bases, ignore)
127 self.assertListEq(foundMethods, actualMethods, ignore)
131 ignore)
148 self.assertHaskey(dict, name, ignore)
154 self.checkModule('doctest', ignore=("TestResults", "_SpoofOut",
156 self.checkModule('difflib', ignore=("Match",))
160 self.checkModule('test.pyclbr_input', ignore=['om', 'f'])
227 cm('random', ignore=('Random',)) # from _random import Random as CoreGenerator
228 cm('pickle', ignore=('partial', 'PickleBuffer'))
230 warnings.simplefilter('ignore', DeprecationWarning)
231 … cm('sre_parse', ignore=('dump', 'groups', 'pos')) # from sre_constants import *; property
235 ignore=('Union', '_ModuleTarget', '_ScriptTarget', '_ZipTarget'),
237 cm('pydoc', ignore=('input', 'output',)) # properties