Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
Python-3.10.14 /
Lib /
test /
Delete
Unzip
Name
Size
Permission
Date
Action
audiodata
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
capath
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
cjkencodings
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
crashers
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
data
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
decimaltestdata
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
dtracedata
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
encoded_modules
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
imghdrdata
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
leakers
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
libregrtest
[ DIR ]
drwxr-xr-x
2025-06-04 09:21
sndhdrdata
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
subprocessdata
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
support
[ DIR ]
drwxr-xr-x
2025-06-04 09:21
test_asyncio
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
test_capi
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
test_email
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
test_import
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
test_importlib
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
test_json
[ DIR ]
drwxr-xr-x
2025-06-04 09:21
test_peg_generator
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
test_tools
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
test_warnings
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
test_zoneinfo
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
tracedmodules
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
typinganndata
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
xmltestdata
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
ziptestdata
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
Sine-1000Hz-300ms.aif
60.25
KB
-rw-r--r--
2024-03-19 22:46
__init__.py
47
B
-rw-r--r--
2024-03-19 22:46
__main__.py
41
B
-rw-r--r--
2024-03-19 22:46
_test_atexit.py
3.61
KB
-rw-r--r--
2024-03-19 22:46
_test_eintr.py
17.65
KB
-rw-r--r--
2024-03-19 22:46
_test_embed_set_config.py
8.55
KB
-rw-r--r--
2024-03-19 22:46
_test_multiprocessing.py
193.64
KB
-rw-r--r--
2024-03-19 22:46
_typed_dict_helper.py
494
B
-rw-r--r--
2024-03-19 22:46
allsans.pem
9.87
KB
-rw-r--r--
2024-03-19 22:46
ann_module.py
1.09
KB
-rw-r--r--
2024-03-19 22:46
ann_module2.py
519
B
-rw-r--r--
2024-03-19 22:46
ann_module3.py
448
B
-rw-r--r--
2024-03-19 22:46
ann_module4.py
81
B
-rw-r--r--
2024-03-19 22:46
ann_module5.py
202
B
-rw-r--r--
2024-03-19 22:46
ann_module6.py
138
B
-rw-r--r--
2024-03-19 22:46
ann_module7.py
295
B
-rw-r--r--
2024-03-19 22:46
audiotest.au
27.48
KB
-rw-r--r--
2024-03-19 22:46
audiotests.py
12.13
KB
-rw-r--r--
2024-03-19 22:46
audit-tests.py
11.35
KB
-rw-r--r--
2024-03-19 22:46
autotest.py
209
B
-rw-r--r--
2024-03-19 22:46
bad_coding.py
24
B
-rw-r--r--
2024-03-19 22:46
bad_coding2.py
30
B
-rw-r--r--
2024-03-19 22:46
bad_getattr.py
61
B
-rw-r--r--
2024-03-19 22:46
bad_getattr2.py
77
B
-rw-r--r--
2024-03-19 22:46
bad_getattr3.py
139
B
-rw-r--r--
2024-03-19 22:46
badcert.pem
1.88
KB
-rw-r--r--
2024-03-19 22:46
badkey.pem
2.11
KB
-rw-r--r--
2024-03-19 22:46
badsyntax_3131.py
32
B
-rw-r--r--
2024-03-19 22:46
badsyntax_future10.py
95
B
-rw-r--r--
2024-03-19 22:46
badsyntax_future3.py
172
B
-rw-r--r--
2024-03-19 22:46
badsyntax_future4.py
153
B
-rw-r--r--
2024-03-19 22:46
badsyntax_future5.py
184
B
-rw-r--r--
2024-03-19 22:46
badsyntax_future6.py
161
B
-rw-r--r--
2024-03-19 22:46
badsyntax_future7.py
196
B
-rw-r--r--
2024-03-19 22:46
badsyntax_future8.py
122
B
-rw-r--r--
2024-03-19 22:46
badsyntax_future9.py
142
B
-rw-r--r--
2024-03-19 22:46
badsyntax_pep3120.py
14
B
-rw-r--r--
2024-03-19 22:46
bisect_cmd.py
5.21
KB
-rwxr-xr-x
2024-03-19 22:46
cfgparser.1
67
B
-rw-r--r--
2024-03-19 22:46
cfgparser.2
19.02
KB
-rw-r--r--
2024-03-19 22:46
cfgparser.3
1.55
KB
-rw-r--r--
2024-03-19 22:46
clinic.test
94.05
KB
-rw-r--r--
2024-03-19 22:46
cmath_testcases.txt
141.05
KB
-rw-r--r--
2024-03-19 22:46
coding20731.py
22
B
-rw-r--r--
2024-03-19 22:46
curses_tests.py
1.21
KB
-rwxr-xr-x
2024-03-19 22:46
dataclass_module_1.py
837
B
-rw-r--r--
2024-03-19 22:46
dataclass_module_1_str.py
835
B
-rw-r--r--
2024-03-19 22:46
dataclass_module_2.py
756
B
-rw-r--r--
2024-03-19 22:46
dataclass_module_2_str.py
754
B
-rw-r--r--
2024-03-19 22:46
dataclass_textanno.py
126
B
-rw-r--r--
2024-03-19 22:46
datetimetester.py
245.16
KB
-rw-r--r--
2024-03-19 22:46
dis_module.py
76
B
-rw-r--r--
2024-03-19 22:46
doctest_aliases.py
240
B
-rw-r--r--
2024-03-19 22:46
doctest_lineno.py
914
B
-rw-r--r--
2024-03-19 22:46
double_const.py
1.18
KB
-rw-r--r--
2024-03-19 22:46
empty.vbs
70
B
-rw-r--r--
2024-03-19 22:46
exception_hierarchy.txt
1.81
KB
-rw-r--r--
2024-03-19 22:46
ffdh3072.pem
2.16
KB
-rw-r--r--
2024-03-19 22:46
final_a.py
411
B
-rw-r--r--
2024-03-19 22:46
final_b.py
411
B
-rw-r--r--
2024-03-19 22:46
floating_points.txt
15.92
KB
-rw-r--r--
2024-03-19 22:46
fork_wait.py
2.23
KB
-rw-r--r--
2024-03-19 22:46
formatfloat_testcases.txt
7.45
KB
-rw-r--r--
2024-03-19 22:46
future_test1.py
229
B
-rw-r--r--
2024-03-19 22:46
future_test2.py
149
B
-rw-r--r--
2024-03-19 22:46
gdb_sample.py
153
B
-rw-r--r--
2024-03-19 22:46
good_getattr.py
198
B
-rw-r--r--
2024-03-19 22:46
idnsans.pem
9.71
KB
-rw-r--r--
2024-03-19 22:46
ieee754.txt
3.21
KB
-rw-r--r--
2024-03-19 22:46
imp_dummy.py
63
B
-rw-r--r--
2024-03-19 22:46
inspect_fodder.py
1.88
KB
-rw-r--r--
2024-03-19 22:46
inspect_fodder2.py
3.69
KB
-rw-r--r--
2024-03-19 22:46
inspect_stock_annotations.py
509
B
-rw-r--r--
2024-03-19 22:46
inspect_stringized_annotations.py
612
B
-rw-r--r--
2024-03-19 22:46
inspect_stringized_annotations_2.py
60
B
-rw-r--r--
2024-03-19 22:46
keycert.passwd.pem
4.13
KB
-rw-r--r--
2024-03-19 22:46
keycert.pem
3.96
KB
-rw-r--r--
2024-03-19 22:46
keycert2.pem
3.98
KB
-rw-r--r--
2024-03-19 22:46
keycert3.pem
9.23
KB
-rw-r--r--
2024-03-19 22:46
keycert4.pem
9.24
KB
-rw-r--r--
2024-03-19 22:46
keycertecc.pem
5.5
KB
-rw-r--r--
2024-03-19 22:46
list_tests.py
16.65
KB
-rw-r--r--
2024-03-19 22:46
lock_tests.py
30.15
KB
-rw-r--r--
2024-03-19 22:46
mailcap.txt
1.24
KB
-rw-r--r--
2024-03-19 22:46
make_ssl_certs.py
9.25
KB
-rw-r--r--
2024-03-19 22:46
mapping_tests.py
21.83
KB
-rw-r--r--
2024-03-19 22:46
math_testcases.txt
23.19
KB
-rw-r--r--
2024-03-19 22:46
memory_watchdog.py
859
B
-rw-r--r--
2024-03-19 22:46
mime.types
47.37
KB
-rw-r--r--
2024-03-19 22:46
mock_socket.py
3.7
KB
-rw-r--r--
2024-03-19 22:46
mod_generics_cache.py
1.13
KB
-rw-r--r--
2024-03-19 22:46
mp_fork_bomb.py
448
B
-rw-r--r--
2024-03-19 22:46
mp_preload.py
351
B
-rw-r--r--
2024-03-19 22:46
multibytecodec_support.py
14.19
KB
-rw-r--r--
2024-03-19 22:46
nokia.pem
1.88
KB
-rw-r--r--
2024-03-19 22:46
nosan.pem
7.54
KB
-rw-r--r--
2024-03-19 22:46
nullbytecert.pem
5.31
KB
-rw-r--r--
2024-03-19 22:46
nullcert.pem
0
B
-rw-r--r--
2024-03-19 22:46
pickletester.py
141.12
KB
-rw-r--r--
2024-03-19 22:46
profilee.py
2.97
KB
-rw-r--r--
2024-03-19 22:46
pstats.pck
65.05
KB
-rw-r--r--
2024-03-19 22:46
pycacert.pem
5.53
KB
-rw-r--r--
2024-03-19 22:46
pycakey.pem
2.43
KB
-rw-r--r--
2024-03-19 22:46
pyclbr_input.py
648
B
-rw-r--r--
2024-03-19 22:46
pydoc_mod.py
961
B
-rw-r--r--
2024-03-19 22:46
pydocfodder.py
6.18
KB
-rw-r--r--
2024-03-19 22:46
pythoninfo.py
23.52
KB
-rw-r--r--
2024-03-19 22:46
randv2_32.pck
7.34
KB
-rw-r--r--
2024-03-19 22:46
randv2_64.pck
7.19
KB
-rw-r--r--
2024-03-19 22:46
randv3.pck
7.82
KB
-rw-r--r--
2024-03-19 22:46
re_tests.py
25.93
KB
-rwxr-xr-x
2024-03-19 22:46
recursion.tar
516
B
-rw-r--r--
2024-03-19 22:46
regrtest.py
1.26
KB
-rwxr-xr-x
2024-03-19 22:46
relimport.py
27
B
-rw-r--r--
2024-03-19 22:46
reperf.py
538
B
-rw-r--r--
2024-03-19 22:46
revocation.crl
800
B
-rw-r--r--
2024-03-19 22:46
sample_doctest.py
1.02
KB
-rw-r--r--
2024-03-19 22:46
sample_doctest_no_docstrings.py
227
B
-rw-r--r--
2024-03-19 22:46
sample_doctest_no_doctests.py
269
B
-rw-r--r--
2024-03-19 22:46
secp384r1.pem
256
B
-rw-r--r--
2024-03-19 22:46
selfsigned_pythontestdotnet.pem
2.08
KB
-rw-r--r--
2024-03-19 22:46
seq_tests.py
14.87
KB
-rw-r--r--
2024-03-19 22:46
sgml_input.html
8.1
KB
-rw-r--r--
2024-03-19 22:46
signalinterproctester.py
2.74
KB
-rw-r--r--
2024-03-19 22:46
sortperf.py
4.69
KB
-rw-r--r--
2024-03-19 22:46
ssl_cert.pem
1.53
KB
-rw-r--r--
2024-03-19 22:46
ssl_key.passwd.pem
2.59
KB
-rw-r--r--
2024-03-19 22:46
ssl_key.pem
2.43
KB
-rw-r--r--
2024-03-19 22:46
ssl_servers.py
7.11
KB
-rw-r--r--
2024-03-19 22:46
ssltests.py
1.03
KB
-rw-r--r--
2024-03-19 22:46
string_tests.py
68.03
KB
-rw-r--r--
2024-03-19 22:46
talos-2019-0758.pem
1.3
KB
-rw-r--r--
2024-03-19 22:46
test___all__.py
4.54
KB
-rw-r--r--
2024-03-19 22:46
test___future__.py
2.36
KB
-rw-r--r--
2024-03-19 22:46
test__locale.py
7.83
KB
-rw-r--r--
2024-03-19 22:46
test__opcode.py
3.05
KB
-rw-r--r--
2024-03-19 22:46
test__osx_support.py
13.64
KB
-rw-r--r--
2024-03-19 22:46
test__xxsubinterpreters.py
78.94
KB
-rw-r--r--
2024-03-19 22:46
test_abc.py
23.19
KB
-rw-r--r--
2024-03-19 22:46
test_abstract_numbers.py
1.49
KB
-rw-r--r--
2024-03-19 22:46
test_aifc.py
17.77
KB
-rw-r--r--
2024-03-19 22:46
test_argparse.py
181.08
KB
-rw-r--r--
2024-03-19 22:46
test_array.py
55.21
KB
-rwxr-xr-x
2024-03-19 22:46
test_asdl_parser.py
4.44
KB
-rw-r--r--
2024-03-19 22:46
test_ast.py
107.27
KB
-rw-r--r--
2024-03-19 22:46
test_asyncgen.py
46.8
KB
-rw-r--r--
2024-03-19 22:46
test_asynchat.py
9.4
KB
-rw-r--r--
2024-03-19 22:46
test_asyncore.py
26.13
KB
-rw-r--r--
2024-03-19 22:46
test_atexit.py
3.14
KB
-rw-r--r--
2024-03-19 22:46
test_audioop.py
28.24
KB
-rw-r--r--
2024-03-19 22:46
test_audit.py
6.46
KB
-rw-r--r--
2024-03-19 22:46
test_augassign.py
7.68
KB
-rw-r--r--
2024-03-19 22:46
test_base64.py
34.51
KB
-rw-r--r--
2024-03-19 22:46
test_baseexception.py
7.77
KB
-rw-r--r--
2024-03-19 22:46
test_bdb.py
43.63
KB
-rw-r--r--
2024-03-19 22:46
test_bigaddrspace.py
2.83
KB
-rw-r--r--
2024-03-19 22:46
test_bigmem.py
44.78
KB
-rw-r--r--
2024-03-19 22:46
test_binascii.py
19.27
KB
-rw-r--r--
2024-03-19 22:46
test_binhex.py
2.1
KB
-rw-r--r--
2024-03-19 22:46
test_binop.py
14.14
KB
-rw-r--r--
2024-03-19 22:46
test_bisect.py
15.71
KB
-rw-r--r--
2024-03-19 22:46
test_bool.py
12.73
KB
-rw-r--r--
2024-03-19 22:46
test_buffer.py
160.31
KB
-rw-r--r--
2024-03-19 22:46
test_bufio.py
2.58
KB
-rw-r--r--
2024-03-19 22:46
test_builtin.py
85.98
KB
-rw-r--r--
2024-03-19 22:46
test_bytes.py
76.03
KB
-rw-r--r--
2024-03-19 22:46
test_bz2.py
37.23
KB
-rw-r--r--
2024-03-19 22:46
test_c_locale_coercion.py
18.92
KB
-rw-r--r--
2024-03-19 22:46
test_calendar.py
51.02
KB
-rw-r--r--
2024-03-19 22:46
test_call.py
26.23
KB
-rw-r--r--
2024-03-19 22:46
test_cgi.py
22.26
KB
-rw-r--r--
2024-03-19 22:46
test_cgitb.py
2.54
KB
-rw-r--r--
2024-03-19 22:46
test_charmapcodec.py
1.77
KB
-rw-r--r--
2024-03-19 22:46
test_check_c_globals.py
1.02
KB
-rw-r--r--
2024-03-19 22:46
test_class.py
17.41
KB
-rw-r--r--
2024-03-19 22:46
test_clinic.py
43.03
KB
-rw-r--r--
2024-03-19 22:46
test_cmath.py
24.08
KB
-rw-r--r--
2024-03-19 22:46
test_cmd.py
6.1
KB
-rw-r--r--
2024-03-19 22:46
test_cmd_line.py
37.59
KB
-rw-r--r--
2024-03-19 22:46
test_cmd_line_script.py
33.43
KB
-rw-r--r--
2024-03-19 22:46
test_code.py
12.67
KB
-rw-r--r--
2024-03-19 22:46
test_code_module.py
5.53
KB
-rw-r--r--
2024-03-19 22:46
test_codeccallbacks.py
47.43
KB
-rw-r--r--
2024-03-19 22:46
test_codecencodings_cn.py
3.86
KB
-rw-r--r--
2024-03-19 22:46
test_codecencodings_hk.py
701
B
-rw-r--r--
2024-03-19 22:46
test_codecencodings_iso2022.py
3.65
KB
-rw-r--r--
2024-03-19 22:46
test_codecencodings_jp.py
4.79
KB
-rw-r--r--
2024-03-19 22:46
test_codecencodings_kr.py
2.96
KB
-rw-r--r--
2024-03-19 22:46
test_codecencodings_tw.py
681
B
-rw-r--r--
2024-03-19 22:46
test_codecmaps_cn.py
746
B
-rw-r--r--
2024-03-19 22:46
test_codecmaps_hk.py
386
B
-rw-r--r--
2024-03-19 22:46
test_codecmaps_jp.py
1.7
KB
-rw-r--r--
2024-03-19 22:46
test_codecmaps_kr.py
1.16
KB
-rw-r--r--
2024-03-19 22:46
test_codecmaps_tw.py
705
B
-rw-r--r--
2024-03-19 22:46
test_codecs.py
133.35
KB
-rw-r--r--
2024-03-19 22:46
test_codeop.py
9.18
KB
-rw-r--r--
2024-03-19 22:46
test_collections.py
92.15
KB
-rw-r--r--
2024-03-19 22:46
test_colorsys.py
3.83
KB
-rw-r--r--
2024-03-19 22:46
test_compare.py
3.74
KB
-rw-r--r--
2024-03-19 22:46
test_compile.py
46.33
KB
-rw-r--r--
2024-03-19 22:46
test_compileall.py
47.55
KB
-rw-r--r--
2024-03-19 22:46
test_complex.py
32.54
KB
-rw-r--r--
2024-03-19 22:46
test_concurrent_futures.py
56.63
KB
-rw-r--r--
2024-03-19 22:46
test_configparser.py
85.4
KB
-rw-r--r--
2024-03-19 22:46
test_contains.py
3.35
KB
-rw-r--r--
2024-03-19 22:46
test_context.py
30.63
KB
-rw-r--r--
2024-03-19 22:46
test_contextlib.py
36.9
KB
-rw-r--r--
2024-03-19 22:46
test_contextlib_async.py
20.67
KB
-rw-r--r--
2024-03-19 22:46
test_copy.py
26.63
KB
-rw-r--r--
2024-03-19 22:46
test_copyreg.py
4.39
KB
-rw-r--r--
2024-03-19 22:46
test_coroutines.py
63.79
KB
-rw-r--r--
2024-03-19 22:46
test_cprofile.py
6.33
KB
-rw-r--r--
2024-03-19 22:46
test_crashers.py
1.17
KB
-rw-r--r--
2024-03-19 22:46
test_crypt.py
4.14
KB
-rw-r--r--
2024-03-19 22:46
test_csv.py
52.99
KB
-rw-r--r--
2024-03-19 22:46
test_ctypes.py
199
B
-rw-r--r--
2024-03-19 22:46
test_curses.py
46.58
KB
-rw-r--r--
2024-03-19 22:46
test_dataclasses.py
126.75
KB
-rw-r--r--
2024-03-19 22:46
test_datetime.py
2.31
KB
-rw-r--r--
2024-03-19 22:46
test_dbm.py
6.11
KB
-rw-r--r--
2024-03-19 22:46
test_dbm_dumb.py
10.68
KB
-rw-r--r--
2024-03-19 22:46
test_dbm_gnu.py
6.51
KB
-rw-r--r--
2024-03-19 22:46
test_dbm_ndbm.py
5.12
KB
-rw-r--r--
2024-03-19 22:46
test_decimal.py
209.81
KB
-rw-r--r--
2024-03-19 22:46
test_decorators.py
14.42
KB
-rw-r--r--
2024-03-19 22:46
test_defaultdict.py
6.13
KB
-rw-r--r--
2024-03-19 22:46
test_deque.py
33.63
KB
-rw-r--r--
2024-03-19 22:46
test_descr.py
192.65
KB
-rw-r--r--
2024-03-19 22:46
test_descrtut.py
11.57
KB
-rw-r--r--
2024-03-19 22:46
test_devpoll.py
4.44
KB
-rw-r--r--
2024-03-19 22:46
test_dict.py
50.72
KB
-rw-r--r--
2024-03-19 22:46
test_dict_version.py
6.1
KB
-rw-r--r--
2024-03-19 22:46
test_dictcomps.py
5.15
KB
-rw-r--r--
2024-03-19 22:46
test_dictviews.py
13.69
KB
-rw-r--r--
2024-03-19 22:46
test_difflib.py
21.47
KB
-rw-r--r--
2024-03-19 22:46
test_difflib_expect.html
100.85
KB
-rw-r--r--
2024-03-19 22:46
test_dis.py
56.47
KB
-rw-r--r--
2024-03-19 22:46
test_distutils.py
587
B
-rw-r--r--
2024-03-19 22:46
test_doctest.py
101.1
KB
-rw-r--r--
2024-03-19 22:46
test_doctest.txt
300
B
-rw-r--r--
2024-03-19 22:46
test_doctest2.py
2.36
KB
-rw-r--r--
2024-03-19 22:46
test_doctest2.txt
392
B
-rw-r--r--
2024-03-19 22:46
test_doctest3.txt
82
B
-rw-r--r--
2024-03-19 22:46
test_doctest4.txt
244
B
-rw-r--r--
2024-03-19 22:46
test_docxmlrpc.py
8.67
KB
-rw-r--r--
2024-03-19 22:46
test_dtrace.py
5.14
KB
-rw-r--r--
2024-03-19 22:46
test_dynamic.py
4.29
KB
-rw-r--r--
2024-03-19 22:46
test_dynamicclassattribute.py
9.57
KB
-rw-r--r--
2024-03-19 22:46
test_eintr.py
584
B
-rw-r--r--
2024-03-19 22:46
test_embed.py
55.88
KB
-rw-r--r--
2024-03-19 22:46
test_ensurepip.py
12.2
KB
-rw-r--r--
2024-03-19 22:46
test_enum.py
121.13
KB
-rw-r--r--
2024-03-19 22:46
test_enumerate.py
8.46
KB
-rw-r--r--
2024-03-19 22:46
test_eof.py
3.02
KB
-rw-r--r--
2024-03-19 22:46
test_epoll.py
9.14
KB
-rw-r--r--
2024-03-19 22:46
test_errno.py
1.04
KB
-rw-r--r--
2024-03-19 22:46
test_exception_hierarchy.py
7.43
KB
-rw-r--r--
2024-03-19 22:46
test_exception_variations.py
3.86
KB
-rw-r--r--
2024-03-19 22:46
test_exceptions.py
90.94
KB
-rw-r--r--
2024-03-19 22:46
test_extcall.py
14.05
KB
-rw-r--r--
2024-03-19 22:46
test_faulthandler.py
30.11
KB
-rw-r--r--
2024-03-19 22:46
test_fcntl.py
7.43
KB
-rw-r--r--
2024-03-19 22:46
test_file.py
11.78
KB
-rw-r--r--
2024-03-19 22:46
test_file_eintr.py
10.61
KB
-rw-r--r--
2024-03-19 22:46
test_filecmp.py
10.33
KB
-rw-r--r--
2024-03-19 22:46
test_fileinput.py
40.18
KB
-rw-r--r--
2024-03-19 22:46
test_fileio.py
19.93
KB
-rw-r--r--
2024-03-19 22:46
test_finalization.py
14.66
KB
-rw-r--r--
2024-03-19 22:46
test_float.py
66.39
KB
-rw-r--r--
2024-03-19 22:46
test_flufl.py
1.55
KB
-rw-r--r--
2024-03-19 22:46
test_fnmatch.py
11.1
KB
-rw-r--r--
2024-03-19 22:46
test_fork1.py
3.24
KB
-rw-r--r--
2024-03-19 22:46
test_format.py
23.91
KB
-rw-r--r--
2024-03-19 22:46
test_fractions.py
29.7
KB
-rw-r--r--
2024-03-19 22:46
test_frame.py
6.22
KB
-rw-r--r--
2024-03-19 22:46
test_frozen.py
943
B
-rw-r--r--
2024-03-19 22:46
test_fstring.py
52.54
KB
-rw-r--r--
2024-03-19 22:46
test_ftplib.py
41.99
KB
-rw-r--r--
2024-03-19 22:46
test_funcattrs.py
14.86
KB
-rw-r--r--
2024-03-19 22:46
test_functools.py
102.67
KB
-rw-r--r--
2024-03-19 22:46
test_future.py
14.88
KB
-rw-r--r--
2024-03-19 22:46
test_future3.py
490
B
-rw-r--r--
2024-03-19 22:46
test_future4.py
222
B
-rw-r--r--
2024-03-19 22:46
test_future5.py
510
B
-rw-r--r--
2024-03-19 22:46
test_gc.py
45.92
KB
-rw-r--r--
2024-03-19 22:46
test_gdb.py
41.71
KB
-rw-r--r--
2024-03-19 22:46
test_generator_stop.py
943
B
-rw-r--r--
2024-03-19 22:46
test_generators.py
63.77
KB
-rw-r--r--
2024-03-19 22:46
test_genericalias.py
12.77
KB
-rw-r--r--
2024-03-19 22:46
test_genericclass.py
9.28
KB
-rw-r--r--
2024-03-19 22:46
test_genericpath.py
21.84
KB
-rw-r--r--
2024-03-19 22:46
test_genexps.py
7.63
KB
-rw-r--r--
2024-03-19 22:46
test_getopt.py
6.78
KB
-rw-r--r--
2024-03-19 22:46
test_getpass.py
6.29
KB
-rw-r--r--
2024-03-19 22:46
test_gettext.py
41.42
KB
-rw-r--r--
2024-03-19 22:46
test_glob.py
15.35
KB
-rw-r--r--
2024-03-19 22:46
test_global.py
1.38
KB
-rw-r--r--
2024-03-19 22:46
test_grammar.py
63.22
KB
-rw-r--r--
2024-03-19 22:46
test_graphlib.py
8.34
KB
-rw-r--r--
2024-03-19 22:46
test_grp.py
3.67
KB
-rw-r--r--
2024-03-19 22:46
test_gzip.py
30.63
KB
-rw-r--r--
2024-03-19 22:46
test_hash.py
11.45
KB
-rw-r--r--
2024-03-19 22:46
test_hashlib.py
44.92
KB
-rw-r--r--
2024-03-19 22:46
test_heapq.py
16.45
KB
-rw-r--r--
2024-03-19 22:46
test_hmac.py
25.41
KB
-rw-r--r--
2024-03-19 22:46
test_html.py
4.23
KB
-rw-r--r--
2024-03-19 22:46
test_htmlparser.py
32.93
KB
-rw-r--r--
2024-03-19 22:46
test_http_cookiejar.py
78.4
KB
-rw-r--r--
2024-03-19 22:46
test_http_cookies.py
18.71
KB
-rw-r--r--
2024-03-19 22:46
test_httplib.py
79.14
KB
-rw-r--r--
2024-03-19 22:46
test_httpservers.py
55.11
KB
-rw-r--r--
2024-03-19 22:46
test_idle.py
1014
B
-rw-r--r--
2024-03-19 22:46
test_imaplib.py
42.13
KB
-rw-r--r--
2024-03-19 22:46
test_imghdr.py
4.69
KB
-rw-r--r--
2024-03-19 22:46
test_imp.py
18.93
KB
-rw-r--r--
2024-03-19 22:46
test_index.py
8.37
KB
-rw-r--r--
2024-03-19 22:46
test_inspect.py
172.66
KB
-rw-r--r--
2024-03-19 22:46
test_int.py
28.32
KB
-rw-r--r--
2024-03-19 22:46
test_int_literal.py
6.89
KB
-rw-r--r--
2024-03-19 22:46
test_interpreters.py
22.48
KB
-rw-r--r--
2024-03-19 22:46
test_io.py
171.42
KB
-rw-r--r--
2024-03-19 22:46
test_ioctl.py
3.24
KB
-rw-r--r--
2024-03-19 22:46
test_ipaddress.py
116.78
KB
-rw-r--r--
2024-03-19 22:46
test_isinstance.py
12.96
KB
-rw-r--r--
2024-03-19 22:46
test_iter.py
36.76
KB
-rw-r--r--
2024-03-19 22:46
test_iterlen.py
7.1
KB
-rw-r--r--
2024-03-19 22:46
test_itertools.py
108.43
KB
-rw-r--r--
2024-03-19 22:46
test_keyword.py
1.97
KB
-rw-r--r--
2024-03-19 22:46
test_keywordonlyarg.py
6.89
KB
-rw-r--r--
2024-03-19 22:46
test_kqueue.py
8.76
KB
-rw-r--r--
2024-03-19 22:46
test_largefile.py
9.98
KB
-rw-r--r--
2024-03-19 22:46
test_lib2to3.py
318
B
-rw-r--r--
2024-03-19 22:46
test_linecache.py
9.64
KB
-rw-r--r--
2024-03-19 22:46
test_list.py
7.98
KB
-rw-r--r--
2024-03-19 22:46
test_listcomps.py
4.17
KB
-rw-r--r--
2024-03-19 22:46
test_lltrace.py
3.13
KB
-rw-r--r--
2024-03-19 22:46
test_locale.py
24.64
KB
-rw-r--r--
2024-03-19 22:46
test_logging.py
196.58
KB
-rw-r--r--
2024-03-19 22:46
test_long.py
54.55
KB
-rw-r--r--
2024-03-19 22:46
test_longexp.py
233
B
-rw-r--r--
2024-03-19 22:46
test_lzma.py
88.18
KB
-rw-r--r--
2024-03-19 22:46
test_mailbox.py
91.79
KB
-rw-r--r--
2024-03-19 22:46
test_mailcap.py
10.16
KB
-rw-r--r--
2024-03-19 22:46
test_marshal.py
20.46
KB
-rw-r--r--
2024-03-19 22:46
test_math.py
90.7
KB
-rw-r--r--
2024-03-19 22:46
test_memoryio.py
31.48
KB
-rw-r--r--
2024-03-19 22:46
test_memoryview.py
21.37
KB
-rw-r--r--
2024-03-19 22:46
test_metaclass.py
6.21
KB
-rw-r--r--
2024-03-19 22:46
test_mimetypes.py
13.85
KB
-rw-r--r--
2024-03-19 22:46
test_minidom.py
68.81
KB
-rw-r--r--
2024-03-19 22:46
test_mmap.py
31.06
KB
-rw-r--r--
2024-03-19 22:46
test_module.py
12.37
KB
-rw-r--r--
2024-03-19 22:46
test_modulefinder.py
12.2
KB
-rw-r--r--
2024-03-19 22:46
test_msilib.py
5.41
KB
-rw-r--r--
2024-03-19 22:46
test_multibytecodec.py
15.76
KB
-rw-r--r--
2024-03-19 22:46
test_multiprocessing_fork.py
477
B
-rw-r--r--
2024-03-19 22:46
test_multiprocessing_forkserver.py
392
B
-rw-r--r--
2024-03-19 22:46
test_multiprocessing_main_handling.py
11.57
KB
-rw-r--r--
2024-03-19 22:46
test_multiprocessing_spawn.py
277
B
-rw-r--r--
2024-03-19 22:46
test_named_expressions.py
20.62
KB
-rw-r--r--
2024-03-19 22:46
test_netrc.py
6.01
KB
-rw-r--r--
2024-03-19 22:46
test_nis.py
1.17
KB
-rw-r--r--
2024-03-19 22:46
test_nntplib.py
62.68
KB
-rw-r--r--
2024-03-19 22:46
test_ntpath.py
38.67
KB
-rw-r--r--
2024-03-19 22:46
test_numeric_tower.py
8
KB
-rw-r--r--
2024-03-19 22:46
test_opcache.py
529
B
-rw-r--r--
2024-03-19 22:46
test_opcodes.py
3.59
KB
-rw-r--r--
2024-03-19 22:46
test_openpty.py
600
B
-rw-r--r--
2024-03-19 22:46
test_operator.py
24.05
KB
-rw-r--r--
2024-03-19 22:46
test_optparse.py
61.02
KB
-rw-r--r--
2024-03-19 22:46
test_ordered_dict.py
31.61
KB
-rw-r--r--
2024-03-19 22:46
test_os.py
167.95
KB
-rw-r--r--
2024-03-19 22:46
test_ossaudiodev.py
7.07
KB
-rw-r--r--
2024-03-19 22:46
test_osx_env.py
1.31
KB
-rw-r--r--
2024-03-19 22:46
test_pathlib.py
109.86
KB
-rw-r--r--
2024-03-19 22:46
test_patma.py
84.78
KB
-rw-r--r--
2024-03-19 22:46
test_pdb.py
68.89
KB
-rw-r--r--
2024-03-19 22:46
test_peepholer.py
19.77
KB
-rw-r--r--
2024-03-19 22:46
test_pickle.py
19.71
KB
-rw-r--r--
2024-03-19 22:46
test_picklebuffer.py
4.99
KB
-rw-r--r--
2024-03-19 22:46
test_pickletools.py
4.13
KB
-rw-r--r--
2024-03-19 22:46
test_pipes.py
6.71
KB
-rw-r--r--
2024-03-19 22:46
test_pkg.py
9.59
KB
-rw-r--r--
2024-03-19 22:46
test_pkgutil.py
21.21
KB
-rw-r--r--
2024-03-19 22:46
test_platform.py
19.98
KB
-rw-r--r--
2024-03-19 22:46
test_plistlib.py
38.73
KB
-rw-r--r--
2024-03-19 22:46
test_poll.py
7.27
KB
-rw-r--r--
2024-03-19 22:46
test_popen.py
2.08
KB
-rw-r--r--
2024-03-19 22:46
test_poplib.py
17.54
KB
-rw-r--r--
2024-03-19 22:46
test_positional_only_arg.py
17.77
KB
-rw-r--r--
2024-03-19 22:46
test_posix.py
87.32
KB
-rw-r--r--
2024-03-19 22:46
test_posixpath.py
32.11
KB
-rw-r--r--
2024-03-19 22:46
test_pow.py
5.43
KB
-rw-r--r--
2024-03-19 22:46
test_pprint.py
50.31
KB
-rw-r--r--
2024-03-19 22:46
test_print.py
7.72
KB
-rw-r--r--
2024-03-19 22:46
test_profile.py
8.69
KB
-rw-r--r--
2024-03-19 22:46
test_property.py
11.35
KB
-rw-r--r--
2024-03-19 22:46
test_pstats.py
3.31
KB
-rw-r--r--
2024-03-19 22:46
test_pty.py
16.84
KB
-rw-r--r--
2024-03-19 22:46
test_pulldom.py
12.66
KB
-rw-r--r--
2024-03-19 22:46
test_pwd.py
4.29
KB
-rw-r--r--
2024-03-19 22:46
test_py_compile.py
11.44
KB
-rw-r--r--
2024-03-19 22:46
test_pyclbr.py
9.84
KB
-rw-r--r--
2024-03-19 22:46
test_pydoc.py
60.53
KB
-rw-r--r--
2024-03-19 22:46
test_pyexpat.py
28.42
KB
-rw-r--r--
2024-03-19 22:46
test_queue.py
20.51
KB
-rw-r--r--
2024-03-19 22:46
test_quopri.py
7.78
KB
-rw-r--r--
2024-03-19 22:46
test_raise.py
13.44
KB
-rw-r--r--
2024-03-19 22:46
test_random.py
55.18
KB
-rw-r--r--
2024-03-19 22:46
test_range.py
24.64
KB
-rw-r--r--
2024-03-19 22:46
test_re.py
112.86
KB
-rw-r--r--
2024-03-19 22:46
test_readline.py
14.24
KB
-rw-r--r--
2024-03-19 22:46
test_regrtest.py
49.5
KB
-rw-r--r--
2024-03-19 22:46
test_repl.py
3.96
KB
-rw-r--r--
2024-03-19 22:46
test_reprlib.py
15.13
KB
-rw-r--r--
2024-03-19 22:46
test_resource.py
7.04
KB
-rw-r--r--
2024-03-19 22:46
test_richcmp.py
11.91
KB
-rw-r--r--
2024-03-19 22:46
test_rlcompleter.py
7.1
KB
-rw-r--r--
2024-03-19 22:46
test_robotparser.py
10.88
KB
-rw-r--r--
2024-03-19 22:46
test_runpy.py
33.86
KB
-rw-r--r--
2024-03-19 22:46
test_sax.py
54.6
KB
-rw-r--r--
2024-03-19 22:46
test_sched.py
7.28
KB
-rw-r--r--
2024-03-19 22:46
test_scope.py
19.83
KB
-rw-r--r--
2024-03-19 22:46
test_script_helper.py
5.78
KB
-rw-r--r--
2024-03-19 22:46
test_secrets.py
4.28
KB
-rw-r--r--
2024-03-19 22:46
test_select.py
3.32
KB
-rw-r--r--
2024-03-19 22:46
test_selectors.py
18.27
KB
-rw-r--r--
2024-03-19 22:46
test_set.py
69.09
KB
-rw-r--r--
2024-03-19 22:46
test_setcomps.py
4.15
KB
-rw-r--r--
2024-03-19 22:46
test_shelve.py
6.02
KB
-rw-r--r--
2024-03-19 22:46
test_shlex.py
13.48
KB
-rw-r--r--
2024-03-19 22:46
test_shutil.py
105.72
KB
-rw-r--r--
2024-03-19 22:46
test_signal.py
48.8
KB
-rw-r--r--
2024-03-19 22:46
test_site.py
27.8
KB
-rw-r--r--
2024-03-19 22:46
test_slice.py
9.23
KB
-rw-r--r--
2024-03-19 22:46
test_smtpd.py
40.65
KB
-rw-r--r--
2024-03-19 22:46
test_smtplib.py
60.05
KB
-rw-r--r--
2024-03-19 22:46
test_smtpnet.py
2.99
KB
-rw-r--r--
2024-03-19 22:46
test_sndhdr.py
1.43
KB
-rw-r--r--
2024-03-19 22:46
test_socket.py
246.76
KB
-rw-r--r--
2024-03-19 22:46
test_socketserver.py
17.89
KB
-rw-r--r--
2024-03-19 22:46
test_sort.py
13.42
KB
-rw-r--r--
2024-03-19 22:46
test_source_encoding.py
9.03
KB
-rw-r--r--
2024-03-19 22:46
test_spwd.py
2.73
KB
-rw-r--r--
2024-03-19 22:46
test_sqlite.py
988
B
-rw-r--r--
2024-03-19 22:46
test_ssl.py
217.26
KB
-rw-r--r--
2024-03-19 22:46
test_startfile.py
1.7
KB
-rw-r--r--
2024-03-19 22:46
test_stat.py
8.58
KB
-rw-r--r--
2024-03-19 22:46
test_statistics.py
113.22
KB
-rw-r--r--
2024-03-19 22:46
test_strftime.py
7.54
KB
-rw-r--r--
2024-03-19 22:46
test_string.py
19.8
KB
-rw-r--r--
2024-03-19 22:46
test_string_literals.py
10.2
KB
-rw-r--r--
2024-03-19 22:46
test_stringprep.py
3.04
KB
-rw-r--r--
2024-03-19 22:46
test_strptime.py
34.42
KB
-rw-r--r--
2024-03-19 22:46
test_strtod.py
20.06
KB
-rw-r--r--
2024-03-19 22:46
test_struct.py
36.19
KB
-rw-r--r--
2024-03-19 22:46
test_structseq.py
4.42
KB
-rw-r--r--
2024-03-19 22:46
test_subclassinit.py
8.12
KB
-rw-r--r--
2024-03-19 22:46
test_subprocess.py
156.33
KB
-rw-r--r--
2024-03-19 22:46
test_sunau.py
5.98
KB
-rw-r--r--
2024-03-19 22:46
test_sundry.py
2.1
KB
-rw-r--r--
2024-03-19 22:46
test_super.py
9.6
KB
-rw-r--r--
2024-03-19 22:46
test_support.py
25.33
KB
-rw-r--r--
2024-03-19 22:46
test_symtable.py
9.36
KB
-rw-r--r--
2024-03-19 22:46
test_syntax.py
52.33
KB
-rw-r--r--
2024-03-19 22:46
test_sys.py
58.56
KB
-rw-r--r--
2024-03-19 22:46
test_sys_setprofile.py
13.19
KB
-rw-r--r--
2024-03-19 22:46
test_sys_settrace.py
62.72
KB
-rw-r--r--
2024-03-19 22:46
test_sysconfig.py
18.92
KB
-rw-r--r--
2024-03-19 22:46
test_syslog.py
2.71
KB
-rw-r--r--
2024-03-19 22:46
test_tabnanny.py
13.44
KB
-rw-r--r--
2024-03-19 22:46
test_tarfile.py
152.06
KB
-rw-r--r--
2024-03-19 22:46
test_tcl.py
31.54
KB
-rw-r--r--
2024-03-19 22:46
test_telnetlib.py
12.74
KB
-rw-r--r--
2024-03-19 22:46
test_tempfile.py
65.97
KB
-rw-r--r--
2024-03-19 22:46
test_textwrap.py
41.89
KB
-rw-r--r--
2024-03-19 22:46
test_thread.py
8.54
KB
-rw-r--r--
2024-03-19 22:46
test_threadedtempfile.py
1.87
KB
-rw-r--r--
2024-03-19 22:46
test_threading.py
59.46
KB
-rw-r--r--
2024-03-19 22:46
test_threading_local.py
6.66
KB
-rw-r--r--
2024-03-19 22:46
test_threadsignals.py
10.11
KB
-rw-r--r--
2024-03-19 22:46
test_time.py
39.93
KB
-rw-r--r--
2024-03-19 22:46
test_timeit.py
15.2
KB
-rw-r--r--
2024-03-19 22:46
test_timeout.py
11
KB
-rw-r--r--
2024-03-19 22:46
test_tix.py
1.05
KB
-rw-r--r--
2024-03-19 22:46
test_tk.py
546
B
-rw-r--r--
2024-03-19 22:46
test_tokenize.py
64.51
KB
-rw-r--r--
2024-03-19 22:46
test_trace.py
20.4
KB
-rw-r--r--
2024-03-19 22:46
test_traceback.py
54.55
KB
-rw-r--r--
2024-03-19 22:46
test_tracemalloc.py
39.17
KB
-rw-r--r--
2024-03-19 22:46
test_ttk_guionly.py
986
B
-rw-r--r--
2024-03-19 22:46
test_ttk_textonly.py
16.69
KB
-rw-r--r--
2024-03-19 22:46
test_tuple.py
18.85
KB
-rw-r--r--
2024-03-19 22:46
test_turtle.py
12.75
KB
-rw-r--r--
2024-03-19 22:46
test_type_annotations.py
3.7
KB
-rw-r--r--
2024-03-19 22:46
test_type_comments.py
10.54
KB
-rw-r--r--
2024-03-19 22:46
test_typechecks.py
2.55
KB
-rw-r--r--
2024-03-19 22:46
test_types.py
75.67
KB
-rw-r--r--
2024-03-19 22:46
test_typing.py
179.66
KB
-rw-r--r--
2024-03-19 22:46
test_ucn.py
9.52
KB
-rw-r--r--
2024-03-19 22:46
test_unary.py
1.63
KB
-rw-r--r--
2024-03-19 22:46
test_unicode.py
120.59
KB
-rw-r--r--
2024-03-19 22:46
test_unicode_file.py
5.71
KB
-rw-r--r--
2024-03-19 22:46
test_unicode_file_functions.py
6.74
KB
-rw-r--r--
2024-03-19 22:46
test_unicode_identifiers.py
984
B
-rw-r--r--
2024-03-19 22:46
test_unicodedata.py
16.21
KB
-rw-r--r--
2024-03-19 22:46
test_unittest.py
226
B
-rw-r--r--
2024-03-19 22:46
test_univnewlines.py
3.88
KB
-rw-r--r--
2024-03-19 22:46
test_unpack.py
3.01
KB
-rw-r--r--
2024-03-19 22:46
test_unpack_ex.py
9.91
KB
-rw-r--r--
2024-03-19 22:46
test_unparse.py
18.59
KB
-rw-r--r--
2024-03-19 22:46
test_urllib.py
70.08
KB
-rw-r--r--
2024-03-19 22:46
test_urllib2.py
78.97
KB
-rw-r--r--
2024-03-19 22:46
test_urllib2_localnet.py
25.5
KB
-rw-r--r--
2024-03-19 22:46
test_urllib2net.py
14.07
KB
-rw-r--r--
2024-03-19 22:46
test_urllib_response.py
1.89
KB
-rw-r--r--
2024-03-19 22:46
test_urllibnet.py
9.32
KB
-rw-r--r--
2024-03-19 22:46
test_urlparse.py
67.31
KB
-rw-r--r--
2024-03-19 22:46
test_userdict.py
7.56
KB
-rw-r--r--
2024-03-19 22:46
test_userlist.py
1.97
KB
-rw-r--r--
2024-03-19 22:46
test_userstring.py
2.4
KB
-rw-r--r--
2024-03-19 22:46
test_utf8_mode.py
10.29
KB
-rw-r--r--
2024-03-19 22:46
test_utf8source.py
1.15
KB
-rw-r--r--
2024-03-19 22:46
test_uu.py
8.92
KB
-rw-r--r--
2024-03-19 22:46
test_uuid.py
40
KB
-rwxr-xr-x
2024-03-19 22:46
test_venv.py
22.63
KB
-rw-r--r--
2024-03-19 22:46
test_wait3.py
1.81
KB
-rw-r--r--
2024-03-19 22:46
test_wait4.py
1.16
KB
-rw-r--r--
2024-03-19 22:46
test_wave.py
6.5
KB
-rw-r--r--
2024-03-19 22:46
test_weakref.py
73.74
KB
-rw-r--r--
2024-03-19 22:46
test_weakset.py
15.42
KB
-rw-r--r--
2024-03-19 22:46
test_webbrowser.py
10.6
KB
-rw-r--r--
2024-03-19 22:46
test_winconsoleio.py
6.57
KB
-rw-r--r--
2024-03-19 22:46
test_winreg.py
22.2
KB
-rw-r--r--
2024-03-19 22:46
test_winsound.py
4.61
KB
-rw-r--r--
2024-03-19 22:46
test_with.py
25.99
KB
-rw-r--r--
2024-03-19 22:46
test_wsgiref.py
30.2
KB
-rw-r--r--
2024-03-19 22:46
test_xdrlib.py
2.17
KB
-rw-r--r--
2024-03-19 22:46
test_xml_dom_minicompat.py
4.18
KB
-rw-r--r--
2024-03-19 22:46
test_xml_etree.py
160.6
KB
-rw-r--r--
2024-03-19 22:46
test_xml_etree_c.py
8.48
KB
-rw-r--r--
2024-03-19 22:46
test_xmlrpc.py
57.66
KB
-rw-r--r--
2024-03-19 22:46
test_xmlrpc_net.py
954
B
-rw-r--r--
2024-03-19 22:46
test_xxlimited.py
2.13
KB
-rw-r--r--
2024-03-19 22:46
test_xxtestfuzz.py
690
B
-rw-r--r--
2024-03-19 22:46
test_yield_from.py
30.09
KB
-rw-r--r--
2024-03-19 22:46
test_zipapp.py
15.92
KB
-rw-r--r--
2024-03-19 22:46
test_zipfile.py
131.16
KB
-rw-r--r--
2024-03-19 22:46
test_zipfile64.py
5.86
KB
-rw-r--r--
2024-03-19 22:46
test_zipimport.py
33.56
KB
-rw-r--r--
2024-03-19 22:46
test_zipimport_support.py
10.46
KB
-rw-r--r--
2024-03-19 22:46
test_zlib.py
34.31
KB
-rw-r--r--
2024-03-19 22:46
testcodec.py
1.02
KB
-rw-r--r--
2024-03-19 22:46
testtar.tar
425
KB
-rw-r--r--
2024-03-19 22:46
testtar.tar.xz
172
B
-rw-r--r--
2024-03-19 22:46
tf_inherit_check.py
714
B
-rw-r--r--
2024-03-19 22:46
time_hashlib.py
2.87
KB
-rw-r--r--
2024-03-19 22:46
tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt
443
B
-rw-r--r--
2024-03-19 22:46
tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt
302
B
-rw-r--r--
2024-03-19 22:46
tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
421
B
-rw-r--r--
2024-03-19 22:46
tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt
326
B
-rw-r--r--
2024-03-19 22:46
tokenize_tests.txt
2.65
KB
-rw-r--r--
2024-03-19 22:46
win_console_handler.py
1.38
KB
-rw-r--r--
2024-03-19 22:46
xmltests.py
499
B
-rw-r--r--
2024-03-19 22:46
zip_cp437_header.zip
270
B
-rw-r--r--
2024-03-19 22:46
zipdir.zip
374
B
-rw-r--r--
2024-03-19 22:46
Save
Rename
# Run the tests in Programs/_testembed.c (tests for the CPython embedding APIs) from test import support from test.support import import_helper from test.support import os_helper import unittest from collections import namedtuple import contextlib import json import os import re import shutil import subprocess import sys import tempfile import textwrap MS_WINDOWS = (os.name == 'nt') MACOS = (sys.platform == 'darwin') PYMEM_ALLOCATOR_NOT_SET = 0 PYMEM_ALLOCATOR_DEBUG = 2 PYMEM_ALLOCATOR_MALLOC = 3 # _PyCoreConfig_InitCompatConfig() API_COMPAT = 1 # _PyCoreConfig_InitPythonConfig() API_PYTHON = 2 # _PyCoreConfig_InitIsolatedConfig() API_ISOLATED = 3 INIT_LOOPS = 16 MAX_HASH_SEED = 4294967295 def debug_build(program): program = os.path.basename(program) name = os.path.splitext(program)[0] return name.casefold().endswith("_d".casefold()) def remove_python_envvars(): env = dict(os.environ) # Remove PYTHON* environment variables to get deterministic environment for key in list(env): if key.startswith('PYTHON'): del env[key] return env class EmbeddingTestsMixin: def setUp(self): here = os.path.abspath(__file__) basepath = os.path.dirname(os.path.dirname(os.path.dirname(here))) exename = "_testembed" if MS_WINDOWS: ext = ("_d" if debug_build(sys.executable) else "") + ".exe" exename += ext exepath = os.path.dirname(sys.executable) else: exepath = os.path.join(basepath, "Programs") self.test_exe = exe = os.path.join(exepath, exename) if not os.path.exists(exe): self.skipTest("%r doesn't exist" % exe) # This is needed otherwise we get a fatal error: # "Py_Initialize: Unable to get the locale encoding # LookupError: no codec search functions registered: can't find encoding" self.oldcwd = os.getcwd() os.chdir(basepath) def tearDown(self): os.chdir(self.oldcwd) def run_embedded_interpreter(self, *args, env=None, timeout=None, returncode=0, input=None, cwd=None): """Runs a test in the embedded interpreter""" cmd = [self.test_exe] cmd.extend(args) if env is not None and MS_WINDOWS: # Windows requires at least the SYSTEMROOT environment variable to # start Python. env = env.copy() env['SYSTEMROOT'] = os.environ['SYSTEMROOT'] p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, env=env, cwd=cwd) try: (out, err) = p.communicate(input=input, timeout=timeout) except: p.terminate() p.wait() raise if p.returncode != returncode and support.verbose: print(f"--- {cmd} failed ---") print(f"stdout:\n{out}") print(f"stderr:\n{err}") print(f"------") self.assertEqual(p.returncode, returncode, "bad returncode %d, stderr is %r" % (p.returncode, err)) return out, err def run_repeated_init_and_subinterpreters(self): out, err = self.run_embedded_interpreter("test_repeated_init_and_subinterpreters") self.assertEqual(err, "") # The output from _testembed looks like this: # --- Pass 1 --- # interp 0 <0x1cf9330>, thread state <0x1cf9700>: id(modules) = 139650431942728 # interp 1 <0x1d4f690>, thread state <0x1d35350>: id(modules) = 139650431165784 # interp 2 <0x1d5a690>, thread state <0x1d99ed0>: id(modules) = 139650413140368 # interp 3 <0x1d4f690>, thread state <0x1dc3340>: id(modules) = 139650412862200 # interp 0 <0x1cf9330>, thread state <0x1cf9700>: id(modules) = 139650431942728 # --- Pass 2 --- # ... interp_pat = (r"^interp (\d+) <(0x[\dA-F]+)>, " r"thread state <(0x[\dA-F]+)>: " r"id\(modules\) = ([\d]+)$") Interp = namedtuple("Interp", "id interp tstate modules") numloops = 1 current_run = [] for line in out.splitlines(): if line == "--- Pass {} ---".format(numloops): self.assertEqual(len(current_run), 0) if support.verbose > 1: print(line) numloops += 1 continue self.assertLess(len(current_run), 5) match = re.match(interp_pat, line) if match is None: self.assertRegex(line, interp_pat) # Parse the line from the loop. The first line is the main # interpreter and the 3 afterward are subinterpreters. interp = Interp(*match.groups()) if support.verbose > 1: print(interp) self.assertTrue(interp.interp) self.assertTrue(interp.tstate) self.assertTrue(interp.modules) current_run.append(interp) # The last line in the loop should be the same as the first. if len(current_run) == 5: main = current_run[0] self.assertEqual(interp, main) yield current_run current_run = [] class EmbeddingTests(EmbeddingTestsMixin, unittest.TestCase): maxDiff = 100 * 50 def test_subinterps_main(self): for run in self.run_repeated_init_and_subinterpreters(): main = run[0] self.assertEqual(main.id, '0') def test_subinterps_different_ids(self): for run in self.run_repeated_init_and_subinterpreters(): main, *subs, _ = run mainid = int(main.id) for i, sub in enumerate(subs): self.assertEqual(sub.id, str(mainid + i + 1)) def test_subinterps_distinct_state(self): for run in self.run_repeated_init_and_subinterpreters(): main, *subs, _ = run if '0x0' in main: # XXX Fix on Windows (and other platforms): something # is going on with the pointers in Programs/_testembed.c. # interp.interp is 0x0 and interp.modules is the same # between interpreters. raise unittest.SkipTest('platform prints pointers as 0x0') for sub in subs: # A new subinterpreter may have the same # PyInterpreterState pointer as a previous one if # the earlier one has already been destroyed. So # we compare with the main interpreter. The same # applies to tstate. self.assertNotEqual(sub.interp, main.interp) self.assertNotEqual(sub.tstate, main.tstate) self.assertNotEqual(sub.modules, main.modules) def test_repeated_init_and_inittab(self): out, err = self.run_embedded_interpreter("test_repeated_init_and_inittab") self.assertEqual(err, "") lines = [f"--- Pass {i} ---" for i in range(1, INIT_LOOPS+1)] lines = "\n".join(lines) + "\n" self.assertEqual(out, lines) def test_forced_io_encoding(self): # Checks forced configuration of embedded interpreter IO streams env = dict(os.environ, PYTHONIOENCODING="utf-8:surrogateescape") out, err = self.run_embedded_interpreter("test_forced_io_encoding", env=env) if support.verbose > 1: print() print(out) print(err) expected_stream_encoding = "utf-8" expected_errors = "surrogateescape" expected_output = '\n'.join([ "--- Use defaults ---", "Expected encoding: default", "Expected errors: default", "stdin: {in_encoding}:{errors}", "stdout: {out_encoding}:{errors}", "stderr: {out_encoding}:backslashreplace", "--- Set errors only ---", "Expected encoding: default", "Expected errors: ignore", "stdin: {in_encoding}:ignore", "stdout: {out_encoding}:ignore", "stderr: {out_encoding}:backslashreplace", "--- Set encoding only ---", "Expected encoding: iso8859-1", "Expected errors: default", "stdin: iso8859-1:{errors}", "stdout: iso8859-1:{errors}", "stderr: iso8859-1:backslashreplace", "--- Set encoding and errors ---", "Expected encoding: iso8859-1", "Expected errors: replace", "stdin: iso8859-1:replace", "stdout: iso8859-1:replace", "stderr: iso8859-1:backslashreplace"]) expected_output = expected_output.format( in_encoding=expected_stream_encoding, out_encoding=expected_stream_encoding, errors=expected_errors) # This is useful if we ever trip over odd platform behaviour self.maxDiff = None self.assertEqual(out.strip(), expected_output) def test_pre_initialization_api(self): """ Checks some key parts of the C-API that need to work before the runtime is initialized (via Py_Initialize()). """ env = dict(os.environ, PYTHONPATH=os.pathsep.join(sys.path)) out, err = self.run_embedded_interpreter("test_pre_initialization_api", env=env) if MS_WINDOWS: expected_path = self.test_exe else: expected_path = os.path.join(os.getcwd(), "spam") expected_output = f"sys.executable: {expected_path}\n" self.assertIn(expected_output, out) self.assertEqual(err, '') def test_pre_initialization_sys_options(self): """ Checks that sys.warnoptions and sys._xoptions can be set before the runtime is initialized (otherwise they won't be effective). """ env = remove_python_envvars() env['PYTHONPATH'] = os.pathsep.join(sys.path) out, err = self.run_embedded_interpreter( "test_pre_initialization_sys_options", env=env) expected_output = ( "sys.warnoptions: ['once', 'module', 'default']\n" "sys._xoptions: {'not_an_option': '1', 'also_not_an_option': '2'}\n" "warnings.filters[:3]: ['default', 'module', 'once']\n" ) self.assertIn(expected_output, out) self.assertEqual(err, '') def test_bpo20891(self): """ bpo-20891: Calling PyGILState_Ensure in a non-Python thread must not crash. """ out, err = self.run_embedded_interpreter("test_bpo20891") self.assertEqual(out, '') self.assertEqual(err, '') def test_initialize_twice(self): """ bpo-33932: Calling Py_Initialize() twice should do nothing (and not crash!). """ out, err = self.run_embedded_interpreter("test_initialize_twice") self.assertEqual(out, '') self.assertEqual(err, '') def test_initialize_pymain(self): """ bpo-34008: Calling Py_Main() after Py_Initialize() must not fail. """ out, err = self.run_embedded_interpreter("test_initialize_pymain") self.assertEqual(out.rstrip(), "Py_Main() after Py_Initialize: sys.argv=['-c', 'arg2']") self.assertEqual(err, '') def test_run_main(self): out, err = self.run_embedded_interpreter("test_run_main") self.assertEqual(out.rstrip(), "Py_RunMain(): sys.argv=['-c', 'arg2']") self.assertEqual(err, '') def test_run_main_loop(self): # bpo-40413: Calling Py_InitializeFromConfig()+Py_RunMain() multiple # times must not crash. nloop = 5 out, err = self.run_embedded_interpreter("test_run_main_loop") self.assertEqual(out, "Py_RunMain(): sys.argv=['-c', 'arg2']\n" * nloop) self.assertEqual(err, '') class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase): maxDiff = 4096 UTF8_MODE_ERRORS = ('surrogatepass' if MS_WINDOWS else 'surrogateescape') # Marker to read the default configuration: get_default_config() GET_DEFAULT_CONFIG = object() # Marker to ignore a configuration parameter IGNORE_CONFIG = object() PRE_CONFIG_COMPAT = { '_config_init': API_COMPAT, 'allocator': PYMEM_ALLOCATOR_NOT_SET, 'parse_argv': 0, 'configure_locale': 1, 'coerce_c_locale': 0, 'coerce_c_locale_warn': 0, 'utf8_mode': 0, } if MS_WINDOWS: PRE_CONFIG_COMPAT.update({ 'legacy_windows_fs_encoding': 0, }) PRE_CONFIG_PYTHON = dict(PRE_CONFIG_COMPAT, _config_init=API_PYTHON, parse_argv=1, coerce_c_locale=GET_DEFAULT_CONFIG, utf8_mode=GET_DEFAULT_CONFIG, ) PRE_CONFIG_ISOLATED = dict(PRE_CONFIG_COMPAT, _config_init=API_ISOLATED, configure_locale=0, isolated=1, use_environment=0, utf8_mode=0, dev_mode=0, coerce_c_locale=0, ) COPY_PRE_CONFIG = [ 'dev_mode', 'isolated', 'use_environment', ] CONFIG_COMPAT = { '_config_init': API_COMPAT, 'isolated': 0, 'use_environment': 1, 'dev_mode': 0, 'install_signal_handlers': 1, 'use_hash_seed': 0, 'hash_seed': 0, 'faulthandler': 0, 'tracemalloc': 0, 'import_time': 0, 'show_ref_count': 0, 'dump_refs': 0, 'malloc_stats': 0, 'filesystem_encoding': GET_DEFAULT_CONFIG, 'filesystem_errors': GET_DEFAULT_CONFIG, 'pycache_prefix': None, 'program_name': GET_DEFAULT_CONFIG, 'parse_argv': 0, 'argv': [""], 'orig_argv': [], 'xoptions': [], 'warnoptions': [], 'pythonpath_env': None, 'home': None, 'executable': GET_DEFAULT_CONFIG, 'base_executable': GET_DEFAULT_CONFIG, 'prefix': GET_DEFAULT_CONFIG, 'base_prefix': GET_DEFAULT_CONFIG, 'exec_prefix': GET_DEFAULT_CONFIG, 'base_exec_prefix': GET_DEFAULT_CONFIG, 'module_search_paths': GET_DEFAULT_CONFIG, 'module_search_paths_set': 1, 'platlibdir': sys.platlibdir, 'site_import': 1, 'bytes_warning': 0, 'warn_default_encoding': 0, 'inspect': 0, 'interactive': 0, 'optimization_level': 0, 'parser_debug': 0, 'write_bytecode': 1, 'verbose': 0, 'quiet': 0, 'user_site_directory': 1, 'configure_c_stdio': 0, 'buffered_stdio': 1, 'stdio_encoding': GET_DEFAULT_CONFIG, 'stdio_errors': GET_DEFAULT_CONFIG, 'skip_source_first_line': 0, 'run_command': None, 'run_module': None, 'run_filename': None, '_install_importlib': 1, 'check_hash_pycs_mode': 'default', 'pathconfig_warnings': 1, '_init_main': 1, '_isolated_interpreter': 0, } if MS_WINDOWS: CONFIG_COMPAT.update({ 'legacy_windows_stdio': 0, }) CONFIG_PYTHON = dict(CONFIG_COMPAT, _config_init=API_PYTHON, configure_c_stdio=1, parse_argv=2, ) CONFIG_ISOLATED = dict(CONFIG_COMPAT, _config_init=API_ISOLATED, isolated=1, use_environment=0, user_site_directory=0, dev_mode=0, install_signal_handlers=0, use_hash_seed=0, faulthandler=0, tracemalloc=0, pathconfig_warnings=0, ) if MS_WINDOWS: CONFIG_ISOLATED['legacy_windows_stdio'] = 0 # global config DEFAULT_GLOBAL_CONFIG = { 'Py_HasFileSystemDefaultEncoding': 0, 'Py_HashRandomizationFlag': 1, '_Py_HasFileSystemDefaultEncodeErrors': 0, } COPY_GLOBAL_PRE_CONFIG = [ ('Py_UTF8Mode', 'utf8_mode'), ] COPY_GLOBAL_CONFIG = [ # Copy core config to global config for expected values # True means that the core config value is inverted (0 => 1 and 1 => 0) ('Py_BytesWarningFlag', 'bytes_warning'), ('Py_DebugFlag', 'parser_debug'), ('Py_DontWriteBytecodeFlag', 'write_bytecode', True), ('Py_FileSystemDefaultEncodeErrors', 'filesystem_errors'), ('Py_FileSystemDefaultEncoding', 'filesystem_encoding'), ('Py_FrozenFlag', 'pathconfig_warnings', True), ('Py_IgnoreEnvironmentFlag', 'use_environment', True), ('Py_InspectFlag', 'inspect'), ('Py_InteractiveFlag', 'interactive'), ('Py_IsolatedFlag', 'isolated'), ('Py_NoSiteFlag', 'site_import', True), ('Py_NoUserSiteDirectory', 'user_site_directory', True), ('Py_OptimizeFlag', 'optimization_level'), ('Py_QuietFlag', 'quiet'), ('Py_UnbufferedStdioFlag', 'buffered_stdio', True), ('Py_VerboseFlag', 'verbose'), ] if MS_WINDOWS: COPY_GLOBAL_PRE_CONFIG.extend(( ('Py_LegacyWindowsFSEncodingFlag', 'legacy_windows_fs_encoding'), )) COPY_GLOBAL_CONFIG.extend(( ('Py_LegacyWindowsStdioFlag', 'legacy_windows_stdio'), )) # path config if MS_WINDOWS: PATH_CONFIG = { 'isolated': -1, 'site_import': -1, 'python3_dll': GET_DEFAULT_CONFIG, } else: PATH_CONFIG = {} # other keys are copied by COPY_PATH_CONFIG COPY_PATH_CONFIG = [ # Copy core config to global config for expected values 'prefix', 'exec_prefix', 'program_name', 'home', # program_full_path and module_search_path are copied indirectly from # the core configuration in check_path_config(). ] if MS_WINDOWS: COPY_PATH_CONFIG.extend(( 'base_executable', )) EXPECTED_CONFIG = None @classmethod def tearDownClass(cls): # clear cache cls.EXPECTED_CONFIG = None def main_xoptions(self, xoptions_list): xoptions = {} for opt in xoptions_list: if '=' in opt: key, value = opt.split('=', 1) xoptions[key] = value else: xoptions[opt] = True return xoptions def _get_expected_config_impl(self): env = remove_python_envvars() code = textwrap.dedent(''' import json import sys import _testinternalcapi configs = _testinternalcapi.get_configs() data = json.dumps(configs) data = data.encode('utf-8') sys.stdout.buffer.write(data) sys.stdout.buffer.flush() ''') # Use -S to not import the site module: get the proper configuration # when test_embed is run from a venv (bpo-35313) args = [sys.executable, '-S', '-c', code] proc = subprocess.run(args, env=env, stdout=subprocess.PIPE, stderr=subprocess.PIPE) if proc.returncode: raise Exception(f"failed to get the default config: " f"stdout={proc.stdout!r} stderr={proc.stderr!r}") stdout = proc.stdout.decode('utf-8') # ignore stderr try: return json.loads(stdout) except json.JSONDecodeError: self.fail(f"fail to decode stdout: {stdout!r}") def _get_expected_config(self): cls = InitConfigTests if cls.EXPECTED_CONFIG is None: cls.EXPECTED_CONFIG = self._get_expected_config_impl() # get a copy configs = {} for config_key, config_value in cls.EXPECTED_CONFIG.items(): config = {} for key, value in config_value.items(): if isinstance(value, list): value = value.copy() config[key] = value configs[config_key] = config return configs def get_expected_config(self, expected_preconfig, expected, expected_pathconfig, env, api, modify_path_cb=None): configs = self._get_expected_config() pre_config = configs['pre_config'] for key, value in expected_preconfig.items(): if value is self.GET_DEFAULT_CONFIG: expected_preconfig[key] = pre_config[key] path_config = configs['path_config'] for key, value in expected_pathconfig.items(): if value is self.GET_DEFAULT_CONFIG: expected_pathconfig[key] = path_config[key] if not expected_preconfig['configure_locale'] or api == API_COMPAT: # there is no easy way to get the locale encoding before # setlocale(LC_CTYPE, "") is called: don't test encodings for key in ('filesystem_encoding', 'filesystem_errors', 'stdio_encoding', 'stdio_errors'): expected[key] = self.IGNORE_CONFIG if not expected_preconfig['configure_locale']: # UTF-8 Mode depends on the locale. There is no easy way # to guess if UTF-8 Mode will be enabled or not if the locale # is not configured. expected_preconfig['utf8_mode'] = self.IGNORE_CONFIG if expected_preconfig['utf8_mode'] == 1: if expected['filesystem_encoding'] is self.GET_DEFAULT_CONFIG: expected['filesystem_encoding'] = 'utf-8' if expected['filesystem_errors'] is self.GET_DEFAULT_CONFIG: expected['filesystem_errors'] = self.UTF8_MODE_ERRORS if expected['stdio_encoding'] is self.GET_DEFAULT_CONFIG: expected['stdio_encoding'] = 'utf-8' if expected['stdio_errors'] is self.GET_DEFAULT_CONFIG: expected['stdio_errors'] = 'surrogateescape' if MS_WINDOWS: default_executable = self.test_exe elif expected['program_name'] is not self.GET_DEFAULT_CONFIG: default_executable = os.path.abspath(expected['program_name']) else: default_executable = os.path.join(os.getcwd(), '_testembed') if expected['executable'] is self.GET_DEFAULT_CONFIG: expected['executable'] = default_executable if expected['base_executable'] is self.GET_DEFAULT_CONFIG: expected['base_executable'] = default_executable if expected['program_name'] is self.GET_DEFAULT_CONFIG: expected['program_name'] = './_testembed' config = configs['config'] for key, value in expected.items(): if value is self.GET_DEFAULT_CONFIG: expected[key] = config[key] if expected['module_search_paths'] is not self.IGNORE_CONFIG: pythonpath_env = expected['pythonpath_env'] if pythonpath_env is not None: paths = pythonpath_env.split(os.path.pathsep) expected['module_search_paths'] = [*paths, *expected['module_search_paths']] if modify_path_cb is not None: expected['module_search_paths'] = expected['module_search_paths'].copy() modify_path_cb(expected['module_search_paths']) for key in self.COPY_PRE_CONFIG: if key not in expected_preconfig: expected_preconfig[key] = expected[key] def check_pre_config(self, configs, expected): pre_config = dict(configs['pre_config']) for key, value in list(expected.items()): if value is self.IGNORE_CONFIG: pre_config.pop(key, None) del expected[key] self.assertEqual(pre_config, expected) def check_config(self, configs, expected): config = dict(configs['config']) for key, value in list(expected.items()): if value is self.IGNORE_CONFIG: config.pop(key, None) del expected[key] self.assertEqual(config, expected) def check_global_config(self, configs): pre_config = configs['pre_config'] config = configs['config'] expected = dict(self.DEFAULT_GLOBAL_CONFIG) for item in self.COPY_GLOBAL_CONFIG: if len(item) == 3: global_key, core_key, opposite = item expected[global_key] = 0 if config[core_key] else 1 else: global_key, core_key = item expected[global_key] = config[core_key] for item in self.COPY_GLOBAL_PRE_CONFIG: if len(item) == 3: global_key, core_key, opposite = item expected[global_key] = 0 if pre_config[core_key] else 1 else: global_key, core_key = item expected[global_key] = pre_config[core_key] self.assertEqual(configs['global_config'], expected) def check_path_config(self, configs, expected): config = configs['config'] for key in self.COPY_PATH_CONFIG: expected[key] = config[key] expected['module_search_path'] = os.path.pathsep.join(config['module_search_paths']) expected['program_full_path'] = config['executable'] self.assertEqual(configs['path_config'], expected) def check_all_configs(self, testname, expected_config=None, expected_preconfig=None, expected_pathconfig=None, modify_path_cb=None, stderr=None, *, api, preconfig_api=None, env=None, ignore_stderr=False, cwd=None): new_env = remove_python_envvars() if env is not None: new_env.update(env) env = new_env if preconfig_api is None: preconfig_api = api if preconfig_api == API_ISOLATED: default_preconfig = self.PRE_CONFIG_ISOLATED elif preconfig_api == API_PYTHON: default_preconfig = self.PRE_CONFIG_PYTHON else: default_preconfig = self.PRE_CONFIG_COMPAT if expected_preconfig is None: expected_preconfig = {} expected_preconfig = dict(default_preconfig, **expected_preconfig) if expected_config is None: expected_config = {} if expected_pathconfig is None: expected_pathconfig = {} expected_pathconfig = dict(self.PATH_CONFIG, **expected_pathconfig) if api == API_PYTHON: default_config = self.CONFIG_PYTHON elif api == API_ISOLATED: default_config = self.CONFIG_ISOLATED else: default_config = self.CONFIG_COMPAT expected_config = dict(default_config, **expected_config) self.get_expected_config(expected_preconfig, expected_config, expected_pathconfig, env, api, modify_path_cb) out, err = self.run_embedded_interpreter(testname, env=env, cwd=cwd) if stderr is None and not expected_config['verbose']: stderr = "" if stderr is not None and not ignore_stderr: self.assertEqual(err.rstrip(), stderr) try: configs = json.loads(out) except json.JSONDecodeError: self.fail(f"fail to decode stdout: {out!r}") self.check_pre_config(configs, expected_preconfig) self.check_config(configs, expected_config) self.check_global_config(configs) self.check_path_config(configs, expected_pathconfig) return configs def test_init_default_config(self): self.check_all_configs("test_init_initialize_config", api=API_COMPAT) def test_preinit_compat_config(self): self.check_all_configs("test_preinit_compat_config", api=API_COMPAT) def test_init_compat_config(self): self.check_all_configs("test_init_compat_config", api=API_COMPAT) def test_init_global_config(self): preconfig = { 'utf8_mode': 1, } config = { 'program_name': './globalvar', 'site_import': 0, 'bytes_warning': 1, 'warnoptions': ['default::BytesWarning'], 'inspect': 1, 'interactive': 1, 'optimization_level': 2, 'write_bytecode': 0, 'verbose': 1, 'quiet': 1, 'buffered_stdio': 0, 'user_site_directory': 0, 'pathconfig_warnings': 0, } self.check_all_configs("test_init_global_config", config, preconfig, api=API_COMPAT) def test_init_from_config(self): preconfig = { 'allocator': PYMEM_ALLOCATOR_MALLOC, 'utf8_mode': 1, } config = { 'install_signal_handlers': 0, 'use_hash_seed': 1, 'hash_seed': 123, 'tracemalloc': 2, 'import_time': 1, 'show_ref_count': 1, 'malloc_stats': 1, 'stdio_encoding': 'iso8859-1', 'stdio_errors': 'replace', 'pycache_prefix': 'conf_pycache_prefix', 'program_name': './conf_program_name', 'argv': ['-c', 'arg2'], 'orig_argv': ['python3', '-W', 'cmdline_warnoption', '-X', 'cmdline_xoption', '-c', 'pass', 'arg2'], 'parse_argv': 2, 'xoptions': [ 'config_xoption1=3', 'config_xoption2=', 'config_xoption3', 'cmdline_xoption', ], 'warnoptions': [ 'cmdline_warnoption', 'default::BytesWarning', 'config_warnoption', ], 'run_command': 'pass\n', 'site_import': 0, 'bytes_warning': 1, 'inspect': 1, 'interactive': 1, 'optimization_level': 2, 'write_bytecode': 0, 'verbose': 1, 'quiet': 1, 'configure_c_stdio': 1, 'buffered_stdio': 0, 'user_site_directory': 0, 'faulthandler': 1, 'platlibdir': 'my_platlibdir', 'module_search_paths': self.IGNORE_CONFIG, 'check_hash_pycs_mode': 'always', 'pathconfig_warnings': 0, '_isolated_interpreter': 1, } self.check_all_configs("test_init_from_config", config, preconfig, api=API_COMPAT) def test_init_compat_env(self): preconfig = { 'allocator': PYMEM_ALLOCATOR_MALLOC, } config = { 'use_hash_seed': 1, 'hash_seed': 42, 'tracemalloc': 2, 'import_time': 1, 'malloc_stats': 1, 'inspect': 1, 'optimization_level': 2, 'pythonpath_env': '/my/path', 'pycache_prefix': 'env_pycache_prefix', 'write_bytecode': 0, 'verbose': 1, 'buffered_stdio': 0, 'stdio_encoding': 'iso8859-1', 'stdio_errors': 'replace', 'user_site_directory': 0, 'faulthandler': 1, 'warnoptions': ['EnvVar'], 'platlibdir': 'env_platlibdir', 'module_search_paths': self.IGNORE_CONFIG, } self.check_all_configs("test_init_compat_env", config, preconfig, api=API_COMPAT) def test_init_python_env(self): preconfig = { 'allocator': PYMEM_ALLOCATOR_MALLOC, 'utf8_mode': 1, } config = { 'use_hash_seed': 1, 'hash_seed': 42, 'tracemalloc': 2, 'import_time': 1, 'malloc_stats': 1, 'inspect': 1, 'optimization_level': 2, 'pythonpath_env': '/my/path', 'pycache_prefix': 'env_pycache_prefix', 'write_bytecode': 0, 'verbose': 1, 'buffered_stdio': 0, 'stdio_encoding': 'iso8859-1', 'stdio_errors': 'replace', 'user_site_directory': 0, 'faulthandler': 1, 'warnoptions': ['EnvVar'], 'platlibdir': 'env_platlibdir', 'module_search_paths': self.IGNORE_CONFIG, } self.check_all_configs("test_init_python_env", config, preconfig, api=API_PYTHON) def test_init_env_dev_mode(self): preconfig = dict(allocator=PYMEM_ALLOCATOR_DEBUG) config = dict(dev_mode=1, faulthandler=1, warnoptions=['default']) self.check_all_configs("test_init_env_dev_mode", config, preconfig, api=API_COMPAT) def test_init_env_dev_mode_alloc(self): preconfig = dict(allocator=PYMEM_ALLOCATOR_MALLOC) config = dict(dev_mode=1, faulthandler=1, warnoptions=['default']) self.check_all_configs("test_init_env_dev_mode_alloc", config, preconfig, api=API_COMPAT) def test_init_dev_mode(self): preconfig = { 'allocator': PYMEM_ALLOCATOR_DEBUG, } config = { 'faulthandler': 1, 'dev_mode': 1, 'warnoptions': ['default'], } self.check_all_configs("test_init_dev_mode", config, preconfig, api=API_PYTHON) def test_preinit_parse_argv(self): # Pre-initialize implicitly using argv: make sure that -X dev # is used to configure the allocation in preinitialization preconfig = { 'allocator': PYMEM_ALLOCATOR_DEBUG, } config = { 'argv': ['script.py'], 'orig_argv': ['python3', '-X', 'dev', 'script.py'], 'run_filename': os.path.abspath('script.py'), 'dev_mode': 1, 'faulthandler': 1, 'warnoptions': ['default'], 'xoptions': ['dev'], } self.check_all_configs("test_preinit_parse_argv", config, preconfig, api=API_PYTHON) def test_preinit_dont_parse_argv(self): # -X dev must be ignored by isolated preconfiguration preconfig = { 'isolated': 0, } argv = ["python3", "-E", "-I", "-X", "dev", "-X", "utf8", "script.py"] config = { 'argv': argv, 'orig_argv': argv, 'isolated': 0, } self.check_all_configs("test_preinit_dont_parse_argv", config, preconfig, api=API_ISOLATED) def test_init_isolated_flag(self): config = { 'isolated': 1, 'use_environment': 0, 'user_site_directory': 0, } self.check_all_configs("test_init_isolated_flag", config, api=API_PYTHON) def test_preinit_isolated1(self): # _PyPreConfig.isolated=1, _PyCoreConfig.isolated not set config = { 'isolated': 1, 'use_environment': 0, 'user_site_directory': 0, } self.check_all_configs("test_preinit_isolated1", config, api=API_COMPAT) def test_preinit_isolated2(self): # _PyPreConfig.isolated=0, _PyCoreConfig.isolated=1 config = { 'isolated': 1, 'use_environment': 0, 'user_site_directory': 0, } self.check_all_configs("test_preinit_isolated2", config, api=API_COMPAT) def test_preinit_isolated_config(self): self.check_all_configs("test_preinit_isolated_config", api=API_ISOLATED) def test_init_isolated_config(self): self.check_all_configs("test_init_isolated_config", api=API_ISOLATED) def test_preinit_python_config(self): self.check_all_configs("test_preinit_python_config", api=API_PYTHON) def test_init_python_config(self): self.check_all_configs("test_init_python_config", api=API_PYTHON) def test_init_dont_configure_locale(self): # _PyPreConfig.configure_locale=0 preconfig = { 'configure_locale': 0, 'coerce_c_locale': 0, } self.check_all_configs("test_init_dont_configure_locale", {}, preconfig, api=API_PYTHON) def test_init_read_set(self): config = { 'program_name': './init_read_set', 'executable': 'my_executable', } def modify_path(path): path.insert(1, "test_path_insert1") path.append("test_path_append") self.check_all_configs("test_init_read_set", config, api=API_PYTHON, modify_path_cb=modify_path) def test_init_sys_add(self): config = { 'faulthandler': 1, 'xoptions': [ 'config_xoption', 'cmdline_xoption', 'sysadd_xoption', 'faulthandler', ], 'warnoptions': [ 'ignore:::cmdline_warnoption', 'ignore:::sysadd_warnoption', 'ignore:::config_warnoption', ], 'orig_argv': ['python3', '-W', 'ignore:::cmdline_warnoption', '-X', 'cmdline_xoption'], } self.check_all_configs("test_init_sys_add", config, api=API_PYTHON) def test_init_run_main(self): code = ('import _testinternalcapi, json; ' 'print(json.dumps(_testinternalcapi.get_configs()))') config = { 'argv': ['-c', 'arg2'], 'orig_argv': ['python3', '-c', code, 'arg2'], 'program_name': './python3', 'run_command': code + '\n', 'parse_argv': 2, } self.check_all_configs("test_init_run_main", config, api=API_PYTHON) def test_init_main(self): code = ('import _testinternalcapi, json; ' 'print(json.dumps(_testinternalcapi.get_configs()))') config = { 'argv': ['-c', 'arg2'], 'orig_argv': ['python3', '-c', code, 'arg2'], 'program_name': './python3', 'run_command': code + '\n', 'parse_argv': 2, '_init_main': 0, } self.check_all_configs("test_init_main", config, api=API_PYTHON, stderr="Run Python code before _Py_InitializeMain") def test_init_parse_argv(self): config = { 'parse_argv': 2, 'argv': ['-c', 'arg1', '-v', 'arg3'], 'orig_argv': ['./argv0', '-E', '-c', 'pass', 'arg1', '-v', 'arg3'], 'program_name': './argv0', 'run_command': 'pass\n', 'use_environment': 0, } self.check_all_configs("test_init_parse_argv", config, api=API_PYTHON) def test_init_dont_parse_argv(self): pre_config = { 'parse_argv': 0, } config = { 'parse_argv': 0, 'argv': ['./argv0', '-E', '-c', 'pass', 'arg1', '-v', 'arg3'], 'orig_argv': ['./argv0', '-E', '-c', 'pass', 'arg1', '-v', 'arg3'], 'program_name': './argv0', } self.check_all_configs("test_init_dont_parse_argv", config, pre_config, api=API_PYTHON) def default_program_name(self, config): if MS_WINDOWS: program_name = 'python' executable = self.test_exe else: program_name = 'python3' if MACOS: executable = self.test_exe else: executable = shutil.which(program_name) or '' config.update({ 'program_name': program_name, 'base_executable': executable, 'executable': executable, }) def test_init_setpath(self): # Test Py_SetPath() config = self._get_expected_config() paths = config['config']['module_search_paths'] config = { 'module_search_paths': paths, 'prefix': '', 'base_prefix': '', 'exec_prefix': '', 'base_exec_prefix': '', } self.default_program_name(config) env = {'TESTPATH': os.path.pathsep.join(paths)} self.check_all_configs("test_init_setpath", config, api=API_COMPAT, env=env, ignore_stderr=True) def test_init_setpath_config(self): # Test Py_SetPath() with PyConfig config = self._get_expected_config() paths = config['config']['module_search_paths'] config = { # set by Py_SetPath() 'module_search_paths': paths, 'prefix': '', 'base_prefix': '', 'exec_prefix': '', 'base_exec_prefix': '', # overridden by PyConfig 'program_name': 'conf_program_name', 'base_executable': 'conf_executable', 'executable': 'conf_executable', } env = {'TESTPATH': os.path.pathsep.join(paths)} self.check_all_configs("test_init_setpath_config", config, api=API_PYTHON, env=env, ignore_stderr=True) def module_search_paths(self, prefix=None, exec_prefix=None): config = self._get_expected_config() if prefix is None: prefix = config['config']['prefix'] if exec_prefix is None: exec_prefix = config['config']['prefix'] if MS_WINDOWS: return config['config']['module_search_paths'] else: ver = sys.version_info return [ os.path.join(prefix, sys.platlibdir, f'python{ver.major}{ver.minor}.zip'), os.path.join(prefix, sys.platlibdir, f'python{ver.major}.{ver.minor}'), os.path.join(exec_prefix, sys.platlibdir, f'python{ver.major}.{ver.minor}', 'lib-dynload'), ] @contextlib.contextmanager def tmpdir_with_python(self): # Temporary directory with a copy of the Python program with tempfile.TemporaryDirectory() as tmpdir: # bpo-38234: On macOS and FreeBSD, the temporary directory # can be symbolic link. For example, /tmp can be a symbolic link # to /var/tmp. Call realpath() to resolve all symbolic links. tmpdir = os.path.realpath(tmpdir) if MS_WINDOWS: # Copy pythonXY.dll (or pythonXY_d.dll) import fnmatch exedir = os.path.dirname(self.test_exe) for f in os.listdir(exedir): if fnmatch.fnmatch(f, '*.dll'): shutil.copyfile(os.path.join(exedir, f), os.path.join(tmpdir, f)) # Copy Python program exec_copy = os.path.join(tmpdir, os.path.basename(self.test_exe)) shutil.copyfile(self.test_exe, exec_copy) shutil.copystat(self.test_exe, exec_copy) self.test_exe = exec_copy yield tmpdir def test_init_setpythonhome(self): # Test Py_SetPythonHome(home) with PYTHONPATH env var config = self._get_expected_config() paths = config['config']['module_search_paths'] paths_str = os.path.pathsep.join(paths) for path in paths: if not os.path.isdir(path): continue if os.path.exists(os.path.join(path, 'os.py')): home = os.path.dirname(path) break else: self.fail(f"Unable to find home in {paths!r}") prefix = exec_prefix = home expected_paths = self.module_search_paths(prefix=home, exec_prefix=home) config = { 'home': home, 'module_search_paths': expected_paths, 'prefix': prefix, 'base_prefix': prefix, 'exec_prefix': exec_prefix, 'base_exec_prefix': exec_prefix, 'pythonpath_env': paths_str, } self.default_program_name(config) env = {'TESTHOME': home, 'PYTHONPATH': paths_str} self.check_all_configs("test_init_setpythonhome", config, api=API_COMPAT, env=env) def copy_paths_by_env(self, config): all_configs = self._get_expected_config() paths = all_configs['config']['module_search_paths'] paths_str = os.path.pathsep.join(paths) config['pythonpath_env'] = paths_str env = {'PYTHONPATH': paths_str} return env @unittest.skipIf(MS_WINDOWS, 'Windows does not use pybuilddir.txt') def test_init_pybuilddir(self): # Test path configuration with pybuilddir.txt configuration file with self.tmpdir_with_python() as tmpdir: # pybuilddir.txt is a sub-directory relative to the current # directory (tmpdir) subdir = 'libdir' libdir = os.path.join(tmpdir, subdir) os.mkdir(libdir) filename = os.path.join(tmpdir, 'pybuilddir.txt') with open(filename, "w", encoding="utf8") as fp: fp.write(subdir) module_search_paths = self.module_search_paths() module_search_paths[-1] = libdir executable = self.test_exe config = { 'base_executable': executable, 'executable': executable, 'module_search_paths': module_search_paths, } env = self.copy_paths_by_env(config) self.check_all_configs("test_init_compat_config", config, api=API_COMPAT, env=env, ignore_stderr=True, cwd=tmpdir) def test_init_pyvenv_cfg(self): # Test path configuration with pyvenv.cfg configuration file with self.tmpdir_with_python() as tmpdir, \ tempfile.TemporaryDirectory() as pyvenv_home: ver = sys.version_info if not MS_WINDOWS: lib_dynload = os.path.join(pyvenv_home, sys.platlibdir, f'python{ver.major}.{ver.minor}', 'lib-dynload') os.makedirs(lib_dynload) else: lib_dynload = os.path.join(pyvenv_home, 'lib') os.makedirs(lib_dynload) # getpathp.c uses Lib\os.py as the LANDMARK shutil.copyfile(os.__file__, os.path.join(lib_dynload, 'os.py')) filename = os.path.join(tmpdir, 'pyvenv.cfg') with open(filename, "w", encoding="utf8") as fp: print("home = %s" % pyvenv_home, file=fp) print("include-system-site-packages = false", file=fp) paths = self.module_search_paths() if not MS_WINDOWS: paths[-1] = lib_dynload else: for index, path in enumerate(paths): if index == 0: paths[index] = os.path.join(tmpdir, os.path.basename(path)) else: paths[index] = os.path.join(pyvenv_home, os.path.basename(path)) paths[-1] = pyvenv_home executable = self.test_exe exec_prefix = pyvenv_home config = { 'base_exec_prefix': exec_prefix, 'exec_prefix': exec_prefix, 'base_executable': executable, 'executable': executable, 'module_search_paths': paths, } path_config = {} if MS_WINDOWS: config['base_prefix'] = pyvenv_home config['prefix'] = pyvenv_home ver = sys.version_info dll = f'python{ver.major}' if debug_build(executable): dll += '_d' dll += '.DLL' dll = os.path.join(os.path.dirname(executable), dll) path_config['python3_dll'] = dll env = self.copy_paths_by_env(config) self.check_all_configs("test_init_compat_config", config, expected_pathconfig=path_config, api=API_COMPAT, env=env, ignore_stderr=True, cwd=tmpdir) def test_global_pathconfig(self): # Test C API functions getting the path configuration: # # - Py_GetExecPrefix() # - Py_GetPath() # - Py_GetPrefix() # - Py_GetProgramFullPath() # - Py_GetProgramName() # - Py_GetPythonHome() # # The global path configuration (_Py_path_config) must be a copy # of the path configuration of PyInterpreter.config (PyConfig). ctypes = import_helper.import_module('ctypes') _testinternalcapi = import_helper.import_module('_testinternalcapi') def get_func(name): func = getattr(ctypes.pythonapi, name) func.argtypes = () func.restype = ctypes.c_wchar_p return func Py_GetPath = get_func('Py_GetPath') Py_GetPrefix = get_func('Py_GetPrefix') Py_GetExecPrefix = get_func('Py_GetExecPrefix') Py_GetProgramName = get_func('Py_GetProgramName') Py_GetProgramFullPath = get_func('Py_GetProgramFullPath') Py_GetPythonHome = get_func('Py_GetPythonHome') config = _testinternalcapi.get_configs()['config'] self.assertEqual(Py_GetPath().split(os.path.pathsep), config['module_search_paths']) self.assertEqual(Py_GetPrefix(), config['prefix']) self.assertEqual(Py_GetExecPrefix(), config['exec_prefix']) self.assertEqual(Py_GetProgramName(), config['program_name']) self.assertEqual(Py_GetProgramFullPath(), config['executable']) self.assertEqual(Py_GetPythonHome(), config['home']) def test_init_warnoptions(self): # lowest to highest priority warnoptions = [ 'ignore:::PyConfig_Insert0', # PyWideStringList_Insert(0) 'default', # PyConfig.dev_mode=1 'ignore:::env1', # PYTHONWARNINGS env var 'ignore:::env2', # PYTHONWARNINGS env var 'ignore:::cmdline1', # -W opt command line option 'ignore:::cmdline2', # -W opt command line option 'default::BytesWarning', # PyConfig.bytes_warnings=1 'ignore:::PySys_AddWarnOption1', # PySys_AddWarnOption() 'ignore:::PySys_AddWarnOption2', # PySys_AddWarnOption() 'ignore:::PyConfig_BeforeRead', # PyConfig.warnoptions 'ignore:::PyConfig_AfterRead'] # PyWideStringList_Append() preconfig = dict(allocator=PYMEM_ALLOCATOR_DEBUG) config = { 'dev_mode': 1, 'faulthandler': 1, 'bytes_warning': 1, 'warnoptions': warnoptions, 'orig_argv': ['python3', '-Wignore:::cmdline1', '-Wignore:::cmdline2'], } self.check_all_configs("test_init_warnoptions", config, preconfig, api=API_PYTHON) def test_init_set_config(self): config = { '_init_main': 0, 'bytes_warning': 2, 'warnoptions': ['error::BytesWarning'], } self.check_all_configs("test_init_set_config", config, api=API_ISOLATED) def test_get_argc_argv(self): self.run_embedded_interpreter("test_get_argc_argv") # ignore output class SetConfigTests(unittest.TestCase): def test_set_config(self): # bpo-42260: Test _PyInterpreterState_SetConfig() cmd = [sys.executable, '-I', '-m', 'test._test_embed_set_config'] proc = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) self.assertEqual(proc.returncode, 0, (proc.returncode, proc.stdout, proc.stderr)) class AuditingTests(EmbeddingTestsMixin, unittest.TestCase): def test_open_code_hook(self): self.run_embedded_interpreter("test_open_code_hook") def test_audit(self): self.run_embedded_interpreter("test_audit") def test_audit_subinterpreter(self): self.run_embedded_interpreter("test_audit_subinterpreter") def test_audit_run_command(self): self.run_embedded_interpreter("test_audit_run_command", timeout=support.SHORT_TIMEOUT, returncode=1) def test_audit_run_file(self): self.run_embedded_interpreter("test_audit_run_file", timeout=support.SHORT_TIMEOUT, returncode=1) def test_audit_run_interactivehook(self): startup = os.path.join(self.oldcwd, os_helper.TESTFN) + ".py" with open(startup, "w", encoding="utf-8") as f: print("import sys", file=f) print("sys.__interactivehook__ = lambda: None", file=f) try: env = {**remove_python_envvars(), "PYTHONSTARTUP": startup} self.run_embedded_interpreter("test_audit_run_interactivehook", timeout=support.SHORT_TIMEOUT, returncode=10, env=env) finally: os.unlink(startup) def test_audit_run_startup(self): startup = os.path.join(self.oldcwd, os_helper.TESTFN) + ".py" with open(startup, "w", encoding="utf-8") as f: print("pass", file=f) try: env = {**remove_python_envvars(), "PYTHONSTARTUP": startup} self.run_embedded_interpreter("test_audit_run_startup", timeout=support.SHORT_TIMEOUT, returncode=10, env=env) finally: os.unlink(startup) def test_audit_run_stdin(self): self.run_embedded_interpreter("test_audit_run_stdin", timeout=support.SHORT_TIMEOUT, returncode=1) class MiscTests(EmbeddingTestsMixin, unittest.TestCase): def test_unicode_id_init(self): # bpo-42882: Test that _PyUnicode_FromId() works # when Python is initialized multiples times. self.run_embedded_interpreter("test_unicode_id_init") class StdPrinterTests(EmbeddingTestsMixin, unittest.TestCase): # Test PyStdPrinter_Type which is used by _PySys_SetPreliminaryStderr(): # "Set up a preliminary stderr printer until we have enough # infrastructure for the io module in place." STDOUT_FD = 1 def create_printer(self, fd): ctypes = import_helper.import_module('ctypes') PyFile_NewStdPrinter = ctypes.pythonapi.PyFile_NewStdPrinter PyFile_NewStdPrinter.argtypes = (ctypes.c_int,) PyFile_NewStdPrinter.restype = ctypes.py_object return PyFile_NewStdPrinter(fd) def test_write(self): message = "unicode:\xe9-\u20ac-\udc80!\n" stdout_fd = self.STDOUT_FD stdout_fd_copy = os.dup(stdout_fd) self.addCleanup(os.close, stdout_fd_copy) rfd, wfd = os.pipe() self.addCleanup(os.close, rfd) self.addCleanup(os.close, wfd) try: # PyFile_NewStdPrinter() only accepts fileno(stdout) # or fileno(stderr) file descriptor. os.dup2(wfd, stdout_fd) printer = self.create_printer(stdout_fd) printer.write(message) finally: os.dup2(stdout_fd_copy, stdout_fd) data = os.read(rfd, 100) self.assertEqual(data, message.encode('utf8', 'backslashreplace')) def test_methods(self): fd = self.STDOUT_FD printer = self.create_printer(fd) self.assertEqual(printer.fileno(), fd) self.assertEqual(printer.isatty(), os.isatty(fd)) printer.flush() # noop printer.close() # noop def test_disallow_instantiation(self): fd = self.STDOUT_FD printer = self.create_printer(fd) support.check_disallow_instantiation(self, type(printer)) if __name__ == "__main__": unittest.main()