Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 863) sorted by relevance

12345678910>>...35

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_types.py3 from test.test_support import run_unittest, have_unicode, run_with_locale, \
94 def test(f, result): function
101 test(float('1.5e'+str(i)), '1.500000e{0:+03d}'.format(i))
297 def test(i, format_spec, result): function
304 test(123456789, 'd', '123456789')
305 test(123456789, 'd', '123456789')
307 test(1, 'c', '\01')
310 test(1, "-", '1')
311 test(-1, "-", '-1')
312 test(1, "-3", ' 1')
[all …]
Dtest_future.py4 from test import test_support
17 from test import test_future1
22 from test import test_future2
27 from test import test_future3
31 from test import badsyntax_future3
39 from test import badsyntax_future4
47 from test import badsyntax_future5
55 from test import badsyntax_future6
63 from test import badsyntax_future7
71 from test import badsyntax_future8
[all …]
Dtest_mutex.py2 import test.test_support
4 mutex = test.test_support.import_module("mutex", deprecated=True)
12 self.assertTrue(m.test(), "mutex not held")
18 self.assertTrue(m.test(), "mutex not held")
29 self.assertFalse(m.test(), "mutex still held")
32 test.test_support.run_unittest(MutexTest)
Dregrtest.py213 from test import test_support
453 def accumulate_result(test, result): argument
455 test_times.append((test_time, test))
457 good.append(test)
459 bad.append(test)
461 bad.append(test)
462 environment_changed.append(test)
464 skipped.append(test)
466 skipped.append(test)
467 resource_denieds.append(test)
[all …]
Dtest_str.py4 from test import test_support, string_tests
110 def test(value, format, expected): function
115 test('', '', '')
116 test('abc', '', 'abc')
117 test('abc', '.3', 'abc')
118 test('ab', '.3', 'ab')
119 test('abcdef', '.3', 'abc')
120 test('abcdef', '.0', '')
121 test('abc', '3.3', 'abc')
122 test('abc', '2.3', 'abc')
[all …]
Dtest_ctypes.py3 from test.test_support import run_unittest, import_module
9 import ctypes.test
10 skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0)
Dtest_whichdb.py7 import test.test_support
12 _fname = test.test_support.TESTFN
15 anydbm = test.test_support.import_module('anydbm', deprecated=True)
43 mod = test.test_support.import_module(name, deprecated=True)
63 test.test_support.run_unittest(WhichDBTestCase)
Dtest_doctest2.txt5 >>> import test.test_doctest
6 >>> test.test_doctest.sillySetup
9 This test also has some (random) encoded (utf-8) unicode text:
14 we include it here (in this test text file) to make sure. :)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
DGrammar.txt37 funcdef: 'def' NAME parameters ['->' test] ':' suite
39 typedargslist: ((tfpdef ['=' test] ',')*
40 ('*' [tname] (',' tname ['=' test])* [',' '**' tname] | '**' tname)
41 | tfpdef ['=' test] (',' tfpdef ['=' test])* [','])
42 tname: NAME [':' test]
45 varargslist: ((vfpdef ['=' test] ',')*
46 ('*' [vname] (',' vname ['=' test])* [',' '**' vname] | '**' vname)
47 | vfpdef ['=' test] (',' vfpdef ['=' test])* [','])
58 testlist_star_expr: (test|star_expr) (',' (test|star_expr))* [',']
62 print_stmt: 'print' ( [ test (',' test)* [','] ] |
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Grammar/
DGrammar27 varargslist: ((fpdef ['=' test] ',')*
29 fpdef ['=' test] (',' fpdef ['=' test])* [','])
42 print_stmt: 'print' ( [ test (',' test)* [','] ] |
43 '>>' test [ (',' test)+ [','] ] )
51 raise_stmt: 'raise' [test [',' test [',' test]]]
62 exec_stmt: 'exec' expr ['in' test [',' test]]
63 assert_stmt: 'assert' test [',' test]
66 if_stmt: 'if' test ':' suite ('elif' test ':' suite)* ['else' ':' suite]
67 while_stmt: 'while' test ':' suite ['else' ':' suite]
75 with_item: test ['as' expr]
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
Dtest_functiontestcase.py11 test = unittest.FunctionTestCase(lambda: None)
13 self.assertEqual(test.countTestCases(), 1)
30 def test(): function
37 unittest.FunctionTestCase(test, setUp, tearDown).run(result)
54 def test(): function
63 unittest.FunctionTestCase(test, setUp, tearDown).run(result)
80 def test(): function
89 unittest.FunctionTestCase(test, setUp, tearDown).run(result)
106 def test(): function
115 unittest.FunctionTestCase(test, setUp, tearDown).run(result)
[all …]
Dtest_skipping.py14 test = Foo("test_skip_me")
15 test.run(result)
17 self.assertEqual(result.skipped, [(test, "skip")])
26 test = Foo("test_nothing")
27 test.run(result)
29 self.assertEqual(result.skipped, [(test, "testing")])
63 test = Foo("test_1")
64 suite = unittest.TestSuite([test])
66 self.assertEqual(result.skipped, [(test, "testing")])
76 test = Foo("test_die")
[all …]
Dtest_runner.py16 test = TestableTest('testNothing')
17 self.assertEqual(test._cleanups, [])
27 test.addCleanup(cleanup1, 1, 2, 3, four='hello', five='goodbye')
28 test.addCleanup(cleanup2)
30 self.assertEqual(test._cleanups,
34 result = test.doCleanups()
47 def addError(self, test, exc_info): argument
48 self.errors.append((test, exc_info))
51 test = TestableTest('testNothing')
52 test._resultForDoCleanups = result
[all …]
Dtest_program.py14 expectedPath = os.path.abspath(os.path.dirname(unittest.test.__file__))
29 test = object()
32 def run(self, test): argument
33 self.test = test
45 del unittest.TestProgram.test
46 unittest.TestProgram.test = test
52 self.assertEqual(runner.test, test)
103 test = 'test' variable in InitialisableProgram
111 test = None variable in FakeRunner
120 def run(self, test): argument
[all …]
Dtest_result.py4 from test import test_support
49 test = Foo('test_1')
53 result.startTest(test)
61 result.stopTest(test)
70 test = Foo('test_1')
74 result.startTest(test)
82 result.stopTest(test)
121 test = Foo('test_1')
125 result.startTest(test)
126 result.addSuccess(test)
[all …]
Dsupport.py50 def startTest(self, test): argument
52 super(LoggingResult, self).startTest(test)
58 def stopTest(self, test): argument
60 super(LoggingResult, self).stopTest(test)
103 def startTest(self, test): argument
106 def stopTest(self, test): argument
109 def addError(self, test): argument
112 def addFailure(self, test): argument
115 def addSuccess(self, test): argument
Dtest_break.py63 def test(result): function
70 test(result)
81 def test(result): function
90 test(result)
111 def test(result): function
116 test(result)
185 test = object()
195 def run(self, test): argument
196 self.runArgs.append(test)
206 self.test = test
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/
Dsuite.py42 for test in self:
43 cases += test.countTestCases()
46 def addTest(self, test): argument
48 if not hasattr(test, '__call__'):
49 raise TypeError("{} is not callable".format(repr(test)))
50 if isinstance(test, type) and issubclass(test,
54 self._tests.append(test)
59 for test in tests:
60 self.addTest(test)
63 for test in self:
[all …]
Drunner.py43 def getDescription(self, test): argument
44 doc_first_line = test.shortDescription()
46 return '\n'.join((str(test), doc_first_line))
48 return str(test)
50 def startTest(self, test): argument
51 super(TextTestResult, self).startTest(test)
53 self.stream.write(self.getDescription(test))
57 def addSuccess(self, test): argument
58 super(TextTestResult, self).addSuccess(test)
65 def addError(self, test, err): argument
[all …]
Dresult.py59 def startTest(self, test): argument
79 def stopTest(self, test): argument
112 def addError(self, test, err): argument
116 self.errors.append((test, self._exc_info_to_string(err, test)))
120 def addFailure(self, test, err): argument
123 self.failures.append((test, self._exc_info_to_string(err, test)))
126 def addSuccess(self, test): argument
130 def addSkip(self, test, reason): argument
132 self.skipped.append((test, reason))
134 def addExpectedFailure(self, test, err): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Ddoctest.py907 test = self._get_test(obj, name, module, globs, source_lines)
908 if test is not None:
909 tests.append(test)
1141 def report_start(self, out, test, example): argument
1154 def report_success(self, out, test, example, got): argument
1162 def report_failure(self, out, test, example, got): argument
1166 out(self._failure_header(test, example) +
1169 def report_unexpected_exception(self, out, test, example, exc_info): argument
1173 out(self._failure_header(test, example) +
1176 def _failure_header(self, test, example): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
Dconfigure174 if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
175 test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
198 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
221 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
245 if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then
270 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
308 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
338 if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then
357 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
389 if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/hotshot/
Dstones.py5 import test.pystone
9 benchtime, stones = p.runcall(test.pystone.pystones)
13 (test.pystone.__version__, test.pystone.LOOPS, benchtime)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
Dtest_sysconfig.py3 import test
9 from test.test_support import TESTFN
24 path = test.test_support.TESTFN
51 self.makefile = test.test_support.TESTFN
63 self.makefile = test.test_support.TESTFN
82 test.test_support.run_unittest(test_suite())
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/
DNumbers.py9 def test(self): member in CompareIntegers
205 def test(self): member in CompareFloats
401 def test(self): member in CompareFloatsIntegers
597 def test(self): member in CompareLongs

12345678910>>...35