Home
last modified time | relevance | path

Searched refs:spam (Results 1 - 25 of 36) sorted by relevance

12

/third_party/python/Lib/test/
H A Dtest_property.py25 def spam(self): member in BaseClass
29 @spam.setter
30 def spam(self, value): member in BaseClass
33 @spam.deleter
34 def spam(self): member in BaseClass
39 @BaseClass.spam.getter
40 def spam(self): member in SubClass
44 @spam.setter
45 def spam(self, value): member in SubClass
48 @spam
49 def spam(self): global() member in SubClass
56 spam = property(_get_spam, doc="spam spam spam") global() variable in PropertyDocBase
60 def spam(self): global() member in PropertyDocSub
66 def spam(self): global() member in PropertySubNewGetter
72 def spam(self): global() member in PropertyNewGetter
76 def spam(self): global() member in PropertyNewGetter
168 def spam(self): global() member in PropertyTests.test_property_decorator_doc_writable.PropertyWritableDoc
249 def spam(self): global() member in PropertySubclassTests.test_slots_docstring_copy_exception.Foo
262 def spam(self): global() member in PropertySubclassTests.test_docstring_copy.Foo
275 def spam(self): global() member in PropertySubclassTests.test_property_setter_copies_getter_docstring.Foo
279 def spam(self, value): global() member in PropertySubclassTests.test_property_setter_copies_getter_docstring.Foo
291 def spam(self, value): global() member in PropertySubclassTests.test_property_setter_copies_getter_docstring.FooSub
308 def spam(self): global() member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo
312 def spam(self): global() member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo
318 def spam(self): global() member in PropertySubclassTests.test_property_new_getter_new_docstring.FooBase
323 def spam(self): global() member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo2
[all...]
H A Dtest_dynamicclassattribute.py26 def spam(self): member in BaseClass
30 @spam.setter
31 def spam(self, value): member in BaseClass
34 @spam.deleter
35 def spam(self): member in BaseClass
40 spam = BaseClass.__dict__['spam'] variable in SubClass
42 @spam.getter
43 def spam(self): member in SubClass
47 @spam
48 def spam(self, value): global() member in SubClass
52 def spam(self): global() member in SubClass
59 spam = DynamicClassAttribute(_get_spam, doc="spam spam spam") global() variable in PropertyDocBase
62 spam = PropertyDocBase.__dict__['spam'] global() variable in PropertyDocSub
64 def spam(self): global() member in PropertyDocSub
69 spam = BaseClass.__dict__['spam'] global() variable in PropertySubNewGetter
71 def spam(self): global() member in PropertySubNewGetter
77 def spam(self): global() member in PropertyNewGetter
81 def spam(self): global() member in PropertyNewGetter
215 def spam(self): global() member in PropertySubclassTests.test_slots_docstring_copy_exception.Foo
229 def spam(self): global() member in PropertySubclassTests.test_docstring_copy.Foo
242 def spam(self): global() member in PropertySubclassTests.test_property_setter_copies_getter_docstring.Foo
246 def spam(self, value): global() member in PropertySubclassTests.test_property_setter_copies_getter_docstring.Foo
257 spam = Foo.__dict__['spam'] global() variable in PropertySubclassTests.test_property_setter_copies_getter_docstring.FooSub
259 def spam(self, value): global() member in PropertySubclassTests.test_property_setter_copies_getter_docstring.FooSub
276 def spam(self): global() member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo
280 def spam(self): global() member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo
286 def spam(self): global() member in PropertySubclassTests.test_property_new_getter_new_docstring.FooBase
290 spam = FooBase.__dict__['spam'] global() variable in PropertySubclassTests.test_property_new_getter_new_docstring.Foo2
292 def spam(self): global() member in PropertySubclassTests.test_property_new_getter_new_docstring.Foo2
[all...]
H A Dtest_symtable.py22 def spam(a, b, *var, **kw):
58 spam = find_block(top, "spam") variable in SymtableTest
59 internal = find_block(spam, "internal")
60 other_internal = find_block(spam, "other_internal")
67 self.assertEqual(self.spam.get_type(), "function")
74 self.assertGreater(self.spam.get_id(), 0)
80 self.assertTrue(self.spam.is_optimized())
85 self.assertFalse(self.spam.is_nested())
95 self.assertEqual(self.spam
[all...]
H A Dtest_named_expressions.py38 code = """def spam(a = b := 42): pass"""
44 code = """def spam(a: b := 42 = 5): pass"""
50 code = """spam(a=b := 'c')"""
56 code = """spam(x = y := f(x))"""
62 code = """spam(a=1, b := 2)"""
69 code = """spam(a=1, (b := 2))"""
76 code = """spam(a=1, (b := 2))"""
267 if spam := "eggs":
268 self.assertEqual(spam, "eggs")
272 if True and (spam
282 def spam(a): global() function
290 def spam(a): global() function
375 def spam(a): global() function
382 def spam(a): global() function
402 def spam(a): global() function
415 def spam(a): global() function
447 def spam(a): global() function
456 def spam(a): global() function
465 def spam(a): global() function
474 def spam(a, b): global() function
483 def spam(a, b): global() function
492 def spam(a, b): global() function
502 def spam(): global() function
[all...]
H A Dtest_frozen.py31 with import_helper.CleanImport('__phello__', '__phello__.spam'):
35 import __phello__.spam as spam namespace
36 self.assertIs(spam, __phello__.spam)
39 self.assertIs(spam.__spec__.loader,
43 with import_helper.CleanImport('__phello__', '__phello__.spam'):
47 import __phello__.spam as spam namespace
48 self.assertIs(spam, __phello_
[all...]
H A Dtest_argparse.py621 Sig('-y', nargs='?', default='spam'),
626 ('', NS(w=None, x=None, y='spam', z=84)),
627 ('-w', NS(w=None, x=None, y='spam', z=84)),
628 ('-w 2', NS(w='2', x=None, y='spam', z=84)),
629 ('-x', NS(w=None, x=42, y='spam', z=84)),
630 ('-x 2', NS(w=None, x='2', y='spam', z=84)),
633 ('-z', NS(w=None, x=None, y='spam', z=42)),
634 ('-z 2', NS(w=None, x=None, y='spam', z=2)),
643 Sig('-y', nargs='*', default='spam'),
647 ('', NS(x=None, y='spam')),
5097 def spam(string): global() function
5175 def spam(string_to_convert): global() function
5191 def spam(int_to_convert): global() function
5202 def spam(int_to_convert): global() function
[all...]
H A Dtest_iter.py335 def spam(state=[0]): function
339 self.check_iterator(iter(spam, 10), list(range(10)), pickle=False)
343 def spam(state=[0]): function
349 self.check_iterator(iter(spam, 20), list(range(10)), pickle=False)
362 def spam(): function
364 # spam() once again so protect against recursion.
365 if spam.is_recursive_call:
367 spam.is_recursive_call = True
368 exhaust(spam.iterator)
371 spam
378 def spam(state=[0]): global() function
1048 def spam(state=[0]): global() function
[all...]
H A Dtest_types.py1692 ns1.a = 'spam'
1697 self.assertEqual(ns1.__dict__, dict(a='spam', b='ham'))
1705 del ns1.spam
1707 del ns2.spam
1711 ns2.y = 'spam'
1712 self.assertEqual(vars(ns2), dict(w=3, x=1, y='spam'))
1716 ns1.spam = 5
1717 self.assertEqual(vars(ns1), dict(spam=5))
1718 del ns1.spam
1724 ns2.x = "spam"
[all...]
H A Dinspect_fodder.py8 def spam(a, /, b, c, d=3, e=4, f=5, *g, **h): function
43 spam(a, b, c)
H A Dtest_scope.py193 def spam(arg): function
198 eggs = spam(cell_ext)
218 def spam(arg): function
224 eggs = spam(cell_ext)
H A Dtest_rlcompleter.py8 spam = 1 variable in CompleteMe
15 self.completer = rlcompleter.Completer(dict(spam=int,
64 ['CompleteMe.spam'])
67 ['CompleteMe.mro()', 'CompleteMe.spam'])
78 ['CompleteMe.me.me.spam'])
H A Dtest_pkg.py106 ("t2 sub subsub __init__.py", "spam = 1"),
127 from t2.sub.subsub import spam namespace
131 for name in ['spam', 'sub', 'subsub', 't2']:
153 ("t3 sub subsub __init__.py", "spam = 1"),
173 ("t4 sub subsub __init__.py", "spam = 1"),
179 self.assertEqual(spam, 1)
187 ("t5 string.py", "spam = 1"),
189 "from . import string; assert string.spam == 1"),
210 '__name__', '__package__', '__spec__', 'spam'])
216 "__all__ = ['spam', 'ha
[all...]
H A Dtest_smtpd.py59 write_line(b'RCPT To:spam@example')
61 self.assertRaises(NotImplementedError, write_line, b'spam\r\n.\r\n')
91 write_line(b'RCPT To:spam@example')
476 self.write_line(b'RCPT To:spam@example')
515 self.write_line(b'RCPT to:spam@example')
574 self.write_line(b'MAIL from:spam@example')
635 self.write_line(b'RCPT To:spam@example')
646 ['spam@example'],
652 self.write_line(b'RCPT To:spam@example')
653 self.write_line(b'DATA spam')
[all...]
H A Dtest_descr.py304 import copy, xxsubtype as spam namespace
307 import xxsubtype as spam namespace
308 return spam.spamlist(l)
311 copy._deepcopy_dispatch[spam.spamlist] = spamlist
334 class C(spam.spamlist):
348 import copy, xxsubtype as spam namespace
350 import xxsubtype as spam namespace
351 sd = spam.spamdict()
356 copy._deepcopy_dispatch[spam.spamdict] = spamdict
384 class C(spam
524 def spam(self): global() member in ClassPropertiesAndMethods.test_metaclass.C
903 def spam(self): return "A" global() member in ClassPropertiesAndMethods.test_diamond_inheritance.A
907 def spam(self): return "B" global() member in ClassPropertiesAndMethods.test_diamond_inheritance.B
1614 import xxsubtype as spam global() namespace
1697 import xxsubtype as spam global() namespace
[all...]
H A Dtest_yield_from.py88 yield "g2 spam"
89 yield "g2 more spam"
97 "Yielded g2 spam",
98 "Yielded g2 more spam",
120 yield "g2 spam"
122 yield "g2 more spam"
136 "Yielded g2 spam",
156 x = yield "g2 spam"
158 x = yield "g2 more spam"
175 "Yielded g2 spam",
968 def spam(g): global() function
[all...]
H A Dtest_urllib_response.py27 with addbase as spam:
H A Dtest_inspect.py125 return 'spam'
130 return 'spam'
138 self.istest(inspect.iscode, 'mod.spam.__code__')
153 self.istest(inspect.isfunction, 'mod.spam')
274 self.assertTrue(inspect.isroutine(mod.spam))
386 (modfile, 9, 'spam', [' eggs(b + d, c + f)\n'], 0))
390 (modfile, 43, 'argue', [' spam(a, b, c)\n'], 0))
409 (modfile, 43, 'argue', [' spam(a, b, c)\n'], 0))
412 (modfile, 9, 'spam', [' eggs(b + d, c + f)\n'], 0))
503 ('spam', mo
3354 def spam(b:int, a) -> float: pass global() function
[all...]
H A Dtest_class.py436 testme.spam
437 self.assertCallStack([('__getattr__', (testme, "spam"))])
440 testme.eggs = "spam, spam, spam and ham"
442 "spam, spam, spam and ham"))])
H A Dtest_abc.py476 spam = 42 variable in test_factory.TestABC.test_subclasshook.C
/third_party/node/test/parallel/
H A Dtest-https-client-renegotiation-limit.js97 spam();
100 function spam() {
104 setImmediate(spam);
H A Dtest-tls-client-renegotiation-limit.js71 const client = tls.connect(options, spam);
91 function spam() {
96 spam();
/third_party/python/Lib/test/test_import/data/circular_imports/
H A Dsource.py2 spam = 1 variable
H A Duse.py2 source.spam
/third_party/python/Lib/test/test_importlib/
H A Dtest_api.py215 module.spam = 3
224 self.assertEqual(actual.spam, 3)
225 self.assertEqual(reloaded.spam, 3)
250 name = 'spam'
252 with test_util.uncache('spam'):
301 name = 'spam'
303 with test_util.uncache('spam'):
360 name = 'spam'
371 name = 'spam'
/third_party/python/Lib/tkinter/test/test_tkinter/
H A Dtest_misc.py46 '^unknown color name "spam"$',
47 root.tk_setPalette, 'spam')
58 '^unknown color name "spam"$',
59 root.tk_setPalette, background='spam')
62 root.tk_setPalette, spam='white')

Completed in 25 milliseconds

12