Home
last modified time | relevance | path

Searched refs:__file__ (Results 1 – 25 of 102) sorted by relevance

12345

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_trace.py23 modname = os.path.splitext(os.path.basename(__file__))[0]
24 return fix_ext_py(__file__), modname
106 self.my_py_filename = fix_ext_py(__file__)
138 (fix_ext_py(testmod.__file__), 2): 1,
139 (fix_ext_py(testmod.__file__), 3): 1,
192 self.my_py_filename = fix_ext_py(__file__)
197 code = compile(code, __file__, 'exec')
239 (fix_ext_py(testmod.__file__), 'testmod', 'func'): 1,
265 ((os.path.splitext(trace.__file__)[0] + '.py', 'trace', 'Trace.runfunc'),
274 (fix_ext_py(testmod.__file__), 'testmod', 'func')): 1,
[all …]
Dtest_doctest3.txt2 Here we check that `__file__` is provided:
4 >>> type(__file__)
Dtest_startfile.py27 empty = path.join(path.dirname(__file__), "empty.vbs")
36 empty = path.join(path.dirname(__file__), "empty.vbs")
Dtest_warnings.py251 filename = warning_tests.__file__
253 del warning_tests.__file__
260 warning_tests.__file__ = filename
267 filename = warning_tests.__file__
270 del warning_tests.__file__
278 warning_tests.__file__ = filename
284 filename = warning_tests.__file__
288 del warning_tests.__file__
297 warning_tests.__file__ = filename
305 file_name = warning_tests.__file__
[all …]
Dtest_ttk_textonly.py7 this_dir = os.path.dirname(os.path.abspath(__file__))
Dtest_repr.py131 fp = open(unittest.__file__)
133 "<open file '%s', mode 'r' at 0x" % unittest.__file__))
136 "<closed file '%s', mode 'r' at 0x" % unittest.__file__))
251 …lenametotestreprtruncation.__name__, areallylongpackageandmodulenametotestreprtruncation.__file__))
Dtest_linecache.py9 FILENAME = linecache.__file__
14 TEST_PATH = os.path.dirname(support.__file__)
Dtest_zipimport.py220 self.assertEqual(zi.get_filename(TESTPACK), mod.__file__)
232 self.assertEqual(zi.get_filename(mod_path), mod.__file__)
236 self.assertEqual(loader.get_filename(mod_name), mod.__file__)
265 self.assertEqual(zi.get_filename(TESTPACK2), mod.__file__)
276 self.assertEqual(zi.get_filename(mod_path), mod.__file__)
280 self.assertEqual(loader.get_filename(mod_name), mod.__file__)
Dtest_cprofile.py36 regenerate_expected_output(__file__, CProfileTest)
Dtest_tk.py16 this_dir = os.path.dirname(os.path.abspath(__file__))
Dtest_ttk_guionly.py17 this_dir = os.path.dirname(os.path.abspath(__file__))
Dtest_compiler.py28 libdir = os.path.dirname(os.__file__)
29 testdir = os.path.dirname(test.test_support.__file__)
100 filename = __file__
Dtest_coding.py17 path = os.path.dirname(__file__)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
Dpygram.py15 _GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "Grammar.txt")
16 _PATTERN_GRAMMAR_FILE = os.path.join(os.path.dirname(__file__),
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
Dtest_dep_util.py17 old_file = os.path.abspath(__file__)
40 three = os.path.abspath(__file__) # I am the old file
56 old_file = os.path.abspath(__file__)
D__init__.py21 here = os.path.dirname(__file__) or os.curdir
Dtest_cmd.py95 cmd.option1 = __file__
102 cmd.option1 = os.path.dirname(__file__) or os.curdir
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/
D__init__.py125 (mod.__name__, mod.__file__)
134 (mod.__name__, mod.__file__)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/
D__init__.py125 (mod.__name__, mod.__file__)
134 (mod.__name__, mod.__file__)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/
D__init__.py45 here = os.path.dirname(__file__)
72 sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/
D__init__.py45 here = os.path.dirname(__file__)
72 sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
D__init__.py6 here = os.path.dirname(__file__)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/
D__init__.py15 tests_dir = os.path.join(os.path.dirname(__file__), '..', 'tests')
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/ccbench/
Dccbench.py87 with open(__file__, "r") as f:
109 with open(__file__, "rb") as f:
119 with open(__file__, "rb") as f:
129 with open(__file__, "rb") as f:
295 cmd_line = [sys.executable, '-E', os.path.abspath(__file__)]
427 cmd_line = [sys.executable, '-E', os.path.abspath(__file__)]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/framer/
Dexample.py31 __file__ = "cStringIO.c" variable in cStringIO

12345