Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.198
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python39 /
lib64 /
python3.9 /
test /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
audiodata
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
capath
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
cjkencodings
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
data
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
decimaltestdata
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
dtracedata
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
eintrdata
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
encoded_modules
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
imghdrdata
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
libregrtest
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
sndhdrdata
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
subprocessdata
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
support
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
test_asyncio
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
test_email
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
test_import
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
test_importlib
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
test_json
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
test_peg_generator
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
test_tools
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
test_warnings
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
test_zoneinfo
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
tracedmodules
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
xmltestdata
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
ziptestdata
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
Sine-1000Hz-300ms.aif
60.25
KB
-rw-r--r--
2025-06-03 22:17
__init__.py
47
B
-rw-r--r--
2025-06-03 22:17
__main__.py
41
B
-rw-r--r--
2025-06-03 22:17
_test_multiprocessing.py
187.16
KB
-rw-r--r--
2025-06-03 22:17
_typed_dict_helper.py
494
B
-rw-r--r--
2025-06-03 22:17
allsans.pem
9.87
KB
-rw-r--r--
2025-06-03 22:17
ann_module.py
1.08
KB
-rw-r--r--
2025-06-03 22:17
ann_module2.py
519
B
-rw-r--r--
2025-06-03 22:17
ann_module3.py
448
B
-rw-r--r--
2025-06-03 22:17
ann_module5.py
202
B
-rw-r--r--
2025-06-03 22:17
ann_module6.py
138
B
-rw-r--r--
2025-06-03 22:17
ann_module7.py
295
B
-rw-r--r--
2025-06-03 22:17
audiotest.au
27.48
KB
-rw-r--r--
2025-06-03 22:17
audiotests.py
12.1
KB
-rw-r--r--
2025-06-03 22:17
audit-tests.py
9.89
KB
-rw-r--r--
2025-06-03 22:17
autotest.py
209
B
-rw-r--r--
2025-06-03 22:17
bad_coding.py
24
B
-rw-r--r--
2025-06-03 22:17
bad_coding2.py
30
B
-rw-r--r--
2025-06-03 22:17
bad_getattr.py
61
B
-rw-r--r--
2025-06-03 22:17
bad_getattr2.py
77
B
-rw-r--r--
2025-06-03 22:17
bad_getattr3.py
139
B
-rw-r--r--
2025-06-03 22:17
badcert.pem
1.88
KB
-rw-r--r--
2025-06-03 22:17
badkey.pem
2.11
KB
-rw-r--r--
2025-06-03 22:17
badsyntax_3131.py
32
B
-rw-r--r--
2025-06-03 22:17
badsyntax_future10.py
95
B
-rw-r--r--
2025-06-03 22:17
badsyntax_future3.py
172
B
-rw-r--r--
2025-06-03 22:17
badsyntax_future4.py
153
B
-rw-r--r--
2025-06-03 22:17
badsyntax_future5.py
184
B
-rw-r--r--
2025-06-03 22:17
badsyntax_future6.py
161
B
-rw-r--r--
2025-06-03 22:17
badsyntax_future7.py
196
B
-rw-r--r--
2025-06-03 22:17
badsyntax_future8.py
122
B
-rw-r--r--
2025-06-03 22:17
badsyntax_future9.py
142
B
-rw-r--r--
2025-06-03 22:17
badsyntax_pep3120.py
14
B
-rw-r--r--
2025-06-03 22:17
bisect_cmd.py
5.23
KB
-rwxr-xr-x
2025-06-03 22:17
cfgparser.1
67
B
-rw-r--r--
2025-06-03 22:17
cfgparser.2
19.02
KB
-rw-r--r--
2025-06-03 22:17
cfgparser.3
1.55
KB
-rw-r--r--
2025-06-03 22:17
clinic.test
94.64
KB
-rw-r--r--
2025-06-03 22:17
cmath_testcases.txt
141.05
KB
-rw-r--r--
2025-06-03 22:17
coding20731.py
22
B
-rw-r--r--
2025-06-03 22:17
curses_tests.py
1.22
KB
-rwxr-xr-x
2025-06-03 22:17
dataclass_module_1.py
837
B
-rw-r--r--
2025-06-03 22:17
dataclass_module_1_str.py
835
B
-rw-r--r--
2025-06-03 22:17
dataclass_module_2.py
756
B
-rw-r--r--
2025-06-03 22:17
dataclass_module_2_str.py
754
B
-rw-r--r--
2025-06-03 22:17
dataclass_textanno.py
126
B
-rw-r--r--
2025-06-03 22:17
datetimetester.py
245.6
KB
-rw-r--r--
2025-06-03 22:17
dis_module.py
76
B
-rw-r--r--
2025-06-03 22:17
doctest_aliases.py
240
B
-rw-r--r--
2025-06-03 22:17
double_const.py
1.18
KB
-rw-r--r--
2025-06-03 22:17
empty.vbs
70
B
-rw-r--r--
2025-06-03 22:17
exception_hierarchy.txt
1.78
KB
-rw-r--r--
2025-06-03 22:17
ffdh3072.pem
2.16
KB
-rw-r--r--
2025-06-03 22:17
final_a.py
411
B
-rw-r--r--
2025-06-03 22:17
final_b.py
411
B
-rw-r--r--
2025-06-03 22:17
floating_points.txt
15.92
KB
-rw-r--r--
2025-06-03 22:17
fork_wait.py
2.17
KB
-rw-r--r--
2025-06-03 22:17
formatfloat_testcases.txt
7.45
KB
-rw-r--r--
2025-06-03 22:17
future_test1.py
229
B
-rw-r--r--
2025-06-03 22:17
future_test2.py
149
B
-rw-r--r--
2025-06-03 22:17
gdb_sample.py
153
B
-rw-r--r--
2025-06-03 22:17
good_getattr.py
198
B
-rw-r--r--
2025-06-03 22:17
idnsans.pem
9.71
KB
-rw-r--r--
2025-06-03 22:17
ieee754.txt
3.21
KB
-rw-r--r--
2025-06-03 22:17
imp_dummy.py
63
B
-rw-r--r--
2025-06-03 22:17
inspect_fodder.py
1.88
KB
-rw-r--r--
2025-06-03 22:17
inspect_fodder2.py
3.38
KB
-rw-r--r--
2025-06-03 22:17
keycert.passwd.pem
4.13
KB
-rw-r--r--
2025-06-03 22:17
keycert.pem
3.96
KB
-rw-r--r--
2025-06-03 22:17
keycert2.pem
3.98
KB
-rw-r--r--
2025-06-03 22:17
keycert3.pem
9.23
KB
-rw-r--r--
2025-06-03 22:17
keycert4.pem
9.24
KB
-rw-r--r--
2025-06-03 22:17
keycertecc.pem
5.5
KB
-rw-r--r--
2025-06-03 22:17
list_tests.py
17.05
KB
-rw-r--r--
2025-06-03 22:17
lock_tests.py
30.08
KB
-rw-r--r--
2025-06-03 22:17
mailcap.txt
1.24
KB
-rw-r--r--
2025-06-03 22:17
make_ssl_certs.py
9.25
KB
-rw-r--r--
2025-06-03 22:17
mapping_tests.py
21.83
KB
-rw-r--r--
2025-06-03 22:17
math_testcases.txt
23.19
KB
-rw-r--r--
2025-06-03 22:17
memory_watchdog.py
859
B
-rw-r--r--
2025-06-03 22:17
mime.types
47.37
KB
-rw-r--r--
2025-06-03 22:17
mock_socket.py
3.7
KB
-rw-r--r--
2025-06-03 22:17
mod_generics_cache.py
1.13
KB
-rw-r--r--
2025-06-03 22:17
mp_fork_bomb.py
448
B
-rw-r--r--
2025-06-03 22:17
mp_preload.py
351
B
-rw-r--r--
2025-06-03 22:17
multibytecodec_support.py
14.17
KB
-rw-r--r--
2025-06-03 22:17
nokia.pem
1.88
KB
-rw-r--r--
2025-06-03 22:17
nosan.pem
7.54
KB
-rw-r--r--
2025-06-03 22:17
nullbytecert.pem
5.31
KB
-rw-r--r--
2025-06-03 22:17
nullcert.pem
0
B
-rw-r--r--
2025-06-03 22:17
pickletester.py
136.56
KB
-rw-r--r--
2025-06-03 22:17
profilee.py
2.97
KB
-rw-r--r--
2025-06-03 22:17
pstats.pck
65.05
KB
-rw-r--r--
2025-06-03 22:17
pycacert.pem
5.53
KB
-rw-r--r--
2025-06-03 22:17
pycakey.pem
2.43
KB
-rw-r--r--
2025-06-03 22:17
pyclbr_input.py
648
B
-rw-r--r--
2025-06-03 22:17
pydoc_mod.py
937
B
-rw-r--r--
2025-06-03 22:17
pydocfodder.py
6.18
KB
-rw-r--r--
2025-06-03 22:17
pythoninfo.py
22.21
KB
-rw-r--r--
2025-06-03 22:17
randv2_32.pck
7.34
KB
-rw-r--r--
2025-06-03 22:17
randv2_64.pck
7.19
KB
-rw-r--r--
2025-06-03 22:17
randv3.pck
7.82
KB
-rw-r--r--
2025-06-03 22:17
re_tests.py
25.94
KB
-rwxr-xr-x
2025-06-03 22:17
recursion.tar
516
B
-rw-r--r--
2025-06-03 22:17
regrtest.py
1.28
KB
-rwxr-xr-x
2025-06-03 22:17
relimport.py
27
B
-rw-r--r--
2025-06-03 22:17
reperf.py
538
B
-rw-r--r--
2025-06-03 22:17
revocation.crl
800
B
-rw-r--r--
2025-06-03 22:17
sample_doctest.py
1.02
KB
-rw-r--r--
2025-06-03 22:17
sample_doctest_no_docstrings.py
227
B
-rw-r--r--
2025-06-03 22:17
sample_doctest_no_doctests.py
269
B
-rw-r--r--
2025-06-03 22:17
secp384r1.pem
256
B
-rw-r--r--
2025-06-03 22:17
selfsigned_pythontestdotnet.pem
2.08
KB
-rw-r--r--
2025-06-03 22:17
seq_tests.py
14.87
KB
-rw-r--r--
2025-06-03 22:17
sgml_input.html
8.1
KB
-rw-r--r--
2025-06-03 22:17
signalinterproctester.py
2.74
KB
-rw-r--r--
2025-06-03 22:17
sortperf.py
4.69
KB
-rw-r--r--
2025-06-03 22:17
ssl_cert.pem
1.53
KB
-rw-r--r--
2025-06-03 22:17
ssl_key.passwd.pem
2.59
KB
-rw-r--r--
2025-06-03 22:17
ssl_key.pem
2.43
KB
-rw-r--r--
2025-06-03 22:17
ssl_servers.py
7.11
KB
-rw-r--r--
2025-06-03 22:17
ssltests.py
1.03
KB
-rw-r--r--
2025-06-03 22:17
string_tests.py
66.55
KB
-rw-r--r--
2025-06-03 22:17
talos-2019-0758.pem
1.3
KB
-rw-r--r--
2025-06-03 22:17
test___all__.py
4.5
KB
-rw-r--r--
2025-06-03 22:17
test___future__.py
2.36
KB
-rw-r--r--
2025-06-03 22:17
test__locale.py
7.83
KB
-rw-r--r--
2025-06-03 22:17
test__opcode.py
3.03
KB
-rw-r--r--
2025-06-03 22:17
test__osx_support.py
13.66
KB
-rw-r--r--
2025-06-03 22:17
test__xxsubinterpreters.py
79.01
KB
-rw-r--r--
2025-06-03 22:17
test_abc.py
19.38
KB
-rw-r--r--
2025-06-03 22:17
test_abstract_numbers.py
1.49
KB
-rw-r--r--
2025-06-03 22:17
test_aifc.py
17.7
KB
-rw-r--r--
2025-06-03 22:17
test_argparse.py
180.91
KB
-rw-r--r--
2025-06-03 22:17
test_array.py
51.67
KB
-rw-r--r--
2025-06-03 22:17
test_asdl_parser.py
4.14
KB
-rw-r--r--
2025-06-03 22:17
test_ast.py
98.84
KB
-rw-r--r--
2025-06-03 22:17
test_asyncgen.py
33.58
KB
-rw-r--r--
2025-06-03 22:17
test_asynchat.py
9.16
KB
-rw-r--r--
2025-06-03 22:17
test_asyncore.py
25.84
KB
-rw-r--r--
2025-06-03 22:17
test_atexit.py
5.81
KB
-rw-r--r--
2025-06-03 22:17
test_audioop.py
28.24
KB
-rw-r--r--
2025-06-03 22:17
test_audit.py
4.3
KB
-rw-r--r--
2025-06-03 22:17
test_augassign.py
7.68
KB
-rw-r--r--
2025-06-03 22:17
test_base64.py
29.88
KB
-rw-r--r--
2025-06-03 22:17
test_baseexception.py
6.86
KB
-rw-r--r--
2025-06-03 22:17
test_bdb.py
41.41
KB
-rw-r--r--
2025-06-03 22:17
test_bigaddrspace.py
2.83
KB
-rw-r--r--
2025-06-03 22:17
test_bigmem.py
44.78
KB
-rw-r--r--
2025-06-03 22:17
test_binascii.py
19.24
KB
-rw-r--r--
2025-06-03 22:17
test_binhex.py
1.96
KB
-rw-r--r--
2025-06-03 22:17
test_binop.py
14.14
KB
-rw-r--r--
2025-06-03 22:17
test_bisect.py
13.63
KB
-rw-r--r--
2025-06-03 22:17
test_bool.py
12.44
KB
-rw-r--r--
2025-06-03 22:17
test_buffer.py
160.27
KB
-rw-r--r--
2025-06-03 22:17
test_bufio.py
2.54
KB
-rw-r--r--
2025-06-03 22:17
test_builtin.py
81.01
KB
-rw-r--r--
2025-06-03 22:17
test_bytes.py
74.65
KB
-rw-r--r--
2025-06-03 22:17
test_bz2.py
36.95
KB
-rw-r--r--
2025-06-03 22:17
test_c_locale_coercion.py
18.92
KB
-rw-r--r--
2025-06-03 22:17
test_calendar.py
49.02
KB
-rw-r--r--
2025-06-03 22:17
test_call.py
24.09
KB
-rw-r--r--
2025-06-03 22:17
test_capi.py
36.9
KB
-rw-r--r--
2025-06-03 22:17
test_cgi.py
22.15
KB
-rw-r--r--
2025-06-03 22:17
test_cgitb.py
2.53
KB
-rw-r--r--
2025-06-03 22:17
test_charmapcodec.py
1.68
KB
-rw-r--r--
2025-06-03 22:17
test_check_c_globals.py
749
B
-rw-r--r--
2025-06-03 22:17
test_class.py
17.41
KB
-rw-r--r--
2025-06-03 22:17
test_clinic.py
21.51
KB
-rw-r--r--
2025-06-03 22:17
test_cmath.py
24.07
KB
-rw-r--r--
2025-06-03 22:17
test_cmd.py
6.1
KB
-rw-r--r--
2025-06-03 22:17
test_cmd_line.py
36.55
KB
-rw-r--r--
2025-06-03 22:17
test_cmd_line_script.py
32.47
KB
-rw-r--r--
2025-06-03 22:17
test_code.py
12.47
KB
-rw-r--r--
2025-06-03 22:17
test_code_module.py
5.51
KB
-rw-r--r--
2025-06-03 22:17
test_codeccallbacks.py
49.05
KB
-rw-r--r--
2025-06-03 22:17
test_codecencodings_cn.py
3.86
KB
-rw-r--r--
2025-06-03 22:17
test_codecencodings_hk.py
701
B
-rw-r--r--
2025-06-03 22:17
test_codecencodings_iso2022.py
3.65
KB
-rw-r--r--
2025-06-03 22:17
test_codecencodings_jp.py
4.79
KB
-rw-r--r--
2025-06-03 22:17
test_codecencodings_kr.py
2.96
KB
-rw-r--r--
2025-06-03 22:17
test_codecencodings_tw.py
681
B
-rw-r--r--
2025-06-03 22:17
test_codecmaps_cn.py
746
B
-rw-r--r--
2025-06-03 22:17
test_codecmaps_hk.py
386
B
-rw-r--r--
2025-06-03 22:17
test_codecmaps_jp.py
1.7
KB
-rw-r--r--
2025-06-03 22:17
test_codecmaps_kr.py
1.16
KB
-rw-r--r--
2025-06-03 22:17
test_codecmaps_tw.py
705
B
-rw-r--r--
2025-06-03 22:17
test_codecs.py
133.02
KB
-rw-r--r--
2025-06-03 22:17
test_codeop.py
8.25
KB
-rw-r--r--
2025-06-03 22:17
test_collections.py
90.13
KB
-rw-r--r--
2025-06-03 22:17
test_colorsys.py
3.83
KB
-rw-r--r--
2025-06-03 22:17
test_compare.py
3.74
KB
-rw-r--r--
2025-06-03 22:17
test_compile.py
37.61
KB
-rw-r--r--
2025-06-03 22:17
test_compileall.py
45.53
KB
-rw-r--r--
2025-06-03 22:17
test_complex.py
32.19
KB
-rw-r--r--
2025-06-03 22:17
test_concurrent_futures.py
54.11
KB
-rw-r--r--
2025-06-03 22:17
test_configparser.py
84.93
KB
-rw-r--r--
2025-06-03 22:17
test_contains.py
3.35
KB
-rw-r--r--
2025-06-03 22:17
test_context.py
30.63
KB
-rw-r--r--
2025-06-03 22:17
test_contextlib.py
33.66
KB
-rw-r--r--
2025-06-03 22:17
test_contextlib_async.py
16.19
KB
-rw-r--r--
2025-06-03 22:17
test_copy.py
26
KB
-rw-r--r--
2025-06-03 22:17
test_copyreg.py
4.39
KB
-rw-r--r--
2025-06-03 22:17
test_coroutines.py
62.89
KB
-rw-r--r--
2025-06-03 22:17
test_cprofile.py
6.33
KB
-rw-r--r--
2025-06-03 22:17
test_crashers.py
1.17
KB
-rw-r--r--
2025-06-03 22:17
test_crypt.py
4.14
KB
-rw-r--r--
2025-06-03 22:17
test_csv.py
49.03
KB
-rw-r--r--
2025-06-03 22:17
test_ctypes.py
184
B
-rw-r--r--
2025-06-03 22:17
test_curses.py
46.28
KB
-rw-r--r--
2025-06-03 22:17
test_dataclasses.py
109.4
KB
-rw-r--r--
2025-06-03 22:17
test_datetime.py
2.3
KB
-rw-r--r--
2025-06-03 22:17
test_dbm.py
6.07
KB
-rw-r--r--
2025-06-03 22:17
test_dbm_dumb.py
10.61
KB
-rw-r--r--
2025-06-03 22:17
test_dbm_gnu.py
6.22
KB
-rw-r--r--
2025-06-03 22:17
test_dbm_ndbm.py
5.05
KB
-rw-r--r--
2025-06-03 22:17
test_decimal.py
209.32
KB
-rw-r--r--
2025-06-03 22:17
test_decorators.py
10.92
KB
-rw-r--r--
2025-06-03 22:17
test_defaultdict.py
7.17
KB
-rw-r--r--
2025-06-03 22:17
test_deque.py
34.52
KB
-rw-r--r--
2025-06-03 22:17
test_descr.py
191.29
KB
-rw-r--r--
2025-06-03 22:17
test_descrtut.py
11.55
KB
-rw-r--r--
2025-06-03 22:17
test_devpoll.py
4.44
KB
-rw-r--r--
2025-06-03 22:17
test_dict.py
46.26
KB
-rw-r--r--
2025-06-03 22:17
test_dict_version.py
6.08
KB
-rw-r--r--
2025-06-03 22:17
test_dictcomps.py
5.15
KB
-rw-r--r--
2025-06-03 22:17
test_dictviews.py
13.49
KB
-rw-r--r--
2025-06-03 22:17
test_difflib.py
21.46
KB
-rw-r--r--
2025-06-03 22:17
test_difflib_expect.html
100.85
KB
-rw-r--r--
2025-06-03 22:17
test_dis.py
53.24
KB
-rw-r--r--
2025-06-03 22:17
test_distutils.py
424
B
-rw-r--r--
2025-06-03 22:17
test_doctest.py
99.28
KB
-rw-r--r--
2025-06-03 22:17
test_doctest.txt
300
B
-rw-r--r--
2025-06-03 22:17
test_doctest2.py
2.36
KB
-rw-r--r--
2025-06-03 22:17
test_doctest2.txt
392
B
-rw-r--r--
2025-06-03 22:17
test_doctest3.txt
82
B
-rw-r--r--
2025-06-03 22:17
test_doctest4.txt
244
B
-rw-r--r--
2025-06-03 22:17
test_docxmlrpc.py
8.67
KB
-rw-r--r--
2025-06-03 22:17
test_dtrace.py
5.14
KB
-rw-r--r--
2025-06-03 22:17
test_dynamic.py
4.29
KB
-rw-r--r--
2025-06-03 22:17
test_dynamicclassattribute.py
9.57
KB
-rw-r--r--
2025-06-03 22:17
test_eintr.py
1.32
KB
-rw-r--r--
2025-06-03 22:17
test_embed.py
51.47
KB
-rw-r--r--
2025-06-03 22:17
test_ensurepip.py
9.83
KB
-rw-r--r--
2025-06-03 22:17
test_enum.py
119.18
KB
-rw-r--r--
2025-06-03 22:17
test_enumerate.py
8.46
KB
-rw-r--r--
2025-06-03 22:17
test_eof.py
2.43
KB
-rw-r--r--
2025-06-03 22:17
test_epoll.py
9.14
KB
-rw-r--r--
2025-06-03 22:17
test_errno.py
1.04
KB
-rw-r--r--
2025-06-03 22:17
test_exception_hierarchy.py
7.43
KB
-rw-r--r--
2025-06-03 22:17
test_exception_variations.py
3.86
KB
-rw-r--r--
2025-06-03 22:17
test_exceptions.py
57.56
KB
-rw-r--r--
2025-06-03 22:17
test_extcall.py
14.05
KB
-rw-r--r--
2025-06-03 22:17
test_faulthandler.py
28.23
KB
-rw-r--r--
2025-06-03 22:17
test_fcntl.py
6.49
KB
-rw-r--r--
2025-06-03 22:17
test_file.py
11.67
KB
-rw-r--r--
2025-06-03 22:17
test_file_eintr.py
10.6
KB
-rw-r--r--
2025-06-03 22:17
test_filecmp.py
8.61
KB
-rw-r--r--
2025-06-03 22:17
test_fileinput.py
37.33
KB
-rw-r--r--
2025-06-03 22:17
test_fileio.py
19.88
KB
-rw-r--r--
2025-06-03 22:17
test_finalization.py
14.66
KB
-rw-r--r--
2025-06-03 22:17
test_float.py
65.49
KB
-rw-r--r--
2025-06-03 22:17
test_flufl.py
1.62
KB
-rw-r--r--
2025-06-03 22:17
test_fnmatch.py
6.77
KB
-rw-r--r--
2025-06-03 22:17
test_fork1.py
3.24
KB
-rw-r--r--
2025-06-03 22:17
test_format.py
23.9
KB
-rw-r--r--
2025-06-03 22:17
test_fractions.py
29.59
KB
-rw-r--r--
2025-06-03 22:17
test_frame.py
5.67
KB
-rw-r--r--
2025-06-03 22:17
test_frozen.py
943
B
-rw-r--r--
2025-06-03 22:17
test_fstring.py
51.38
KB
-rw-r--r--
2025-06-03 22:17
test_ftplib.py
41.75
KB
-rw-r--r--
2025-06-03 22:17
test_funcattrs.py
13.54
KB
-rw-r--r--
2025-06-03 22:17
test_functools.py
102.34
KB
-rw-r--r--
2025-06-03 22:17
test_future.py
12.97
KB
-rw-r--r--
2025-06-03 22:17
test_future3.py
490
B
-rw-r--r--
2025-06-03 22:17
test_future4.py
222
B
-rw-r--r--
2025-06-03 22:17
test_future5.py
510
B
-rw-r--r--
2025-06-03 22:17
test_gc.py
45.83
KB
-rw-r--r--
2025-06-03 22:17
test_gdb.py
42.54
KB
-rw-r--r--
2025-06-03 22:17
test_generator_stop.py
943
B
-rw-r--r--
2025-06-03 22:17
test_generators.py
63.49
KB
-rw-r--r--
2025-06-03 22:17
test_genericalias.py
14.98
KB
-rw-r--r--
2025-06-03 22:17
test_genericclass.py
9.28
KB
-rw-r--r--
2025-06-03 22:17
test_genericpath.py
21.69
KB
-rw-r--r--
2025-06-03 22:17
test_genexps.py
7.58
KB
-rw-r--r--
2025-06-03 22:17
test_getargs2.py
50
KB
-rw-r--r--
2025-06-03 22:17
test_getopt.py
6.75
KB
-rw-r--r--
2025-06-03 22:17
test_getpass.py
6.29
KB
-rw-r--r--
2025-06-03 22:17
test_gettext.py
41.38
KB
-rw-r--r--
2025-06-03 22:17
test_glob.py
13.03
KB
-rw-r--r--
2025-06-03 22:17
test_global.py
1.34
KB
-rw-r--r--
2025-06-03 22:17
test_grammar.py
60.61
KB
-rw-r--r--
2025-06-03 22:17
test_graphlib.py
8.34
KB
-rw-r--r--
2025-06-03 22:17
test_grp.py
3.54
KB
-rw-r--r--
2025-06-03 22:17
test_gzip.py
30.17
KB
-rw-r--r--
2025-06-03 22:17
test_hash.py
11.45
KB
-rw-r--r--
2025-06-03 22:17
test_hashlib.py
43.63
KB
-rw-r--r--
2025-06-03 22:17
test_heapq.py
16.4
KB
-rw-r--r--
2025-06-03 22:17
test_hmac.py
24.94
KB
-rw-r--r--
2025-06-03 22:17
test_html.py
4.23
KB
-rw-r--r--
2025-06-03 22:17
test_htmlparser.py
33.78
KB
-rw-r--r--
2025-06-03 22:17
test_http_cookiejar.py
78.17
KB
-rw-r--r--
2025-06-03 22:17
test_http_cookies.py
20.02
KB
-rw-r--r--
2025-06-03 22:17
test_httplib.py
78.02
KB
-rw-r--r--
2025-06-03 22:17
test_httpservers.py
54.67
KB
-rw-r--r--
2025-06-03 22:17
test_idle.py
1000
B
-rw-r--r--
2025-06-03 22:17
test_imaplib.py
41.66
KB
-rw-r--r--
2025-06-03 22:17
test_imghdr.py
4.66
KB
-rw-r--r--
2025-06-03 22:17
test_imp.py
17.73
KB
-rw-r--r--
2025-06-03 22:17
test_index.py
8.37
KB
-rw-r--r--
2025-06-03 22:17
test_inspect.py
156
KB
-rw-r--r--
2025-06-03 22:17
test_int.py
28.41
KB
-rw-r--r--
2025-06-03 22:17
test_int_literal.py
6.89
KB
-rw-r--r--
2025-06-03 22:17
test_io.py
166.66
KB
-rw-r--r--
2025-06-03 22:17
test_ioctl.py
3.2
KB
-rw-r--r--
2025-06-03 22:17
test_ipaddress.py
125.41
KB
-rw-r--r--
2025-06-03 22:17
test_isinstance.py
11.56
KB
-rw-r--r--
2025-06-03 22:17
test_iter.py
32.46
KB
-rw-r--r--
2025-06-03 22:17
test_iterlen.py
7.1
KB
-rw-r--r--
2025-06-03 22:17
test_itertools.py
101.47
KB
-rw-r--r--
2025-06-03 22:17
test_keyword.py
1.39
KB
-rw-r--r--
2025-06-03 22:17
test_keywordonlyarg.py
6.85
KB
-rw-r--r--
2025-06-03 22:17
test_kqueue.py
8.76
KB
-rw-r--r--
2025-06-03 22:17
test_largefile.py
9.94
KB
-rw-r--r--
2025-06-03 22:17
test_lib2to3.py
264
B
-rw-r--r--
2025-06-03 22:17
test_linecache.py
9.46
KB
-rw-r--r--
2025-06-03 22:17
test_list.py
7.98
KB
-rw-r--r--
2025-06-03 22:17
test_listcomps.py
4.17
KB
-rw-r--r--
2025-06-03 22:17
test_lltrace.py
1013
B
-rw-r--r--
2025-06-03 22:17
test_locale.py
23.82
KB
-rw-r--r--
2025-06-03 22:17
test_logging.py
189.27
KB
-rw-r--r--
2025-06-03 22:17
test_long.py
53.41
KB
-rw-r--r--
2025-06-03 22:17
test_longexp.py
233
B
-rw-r--r--
2025-06-03 22:17
test_lzma.py
87.94
KB
-rw-r--r--
2025-06-03 22:17
test_mailbox.py
91.56
KB
-rw-r--r--
2025-06-03 22:17
test_mailcap.py
10.03
KB
-rw-r--r--
2025-06-03 22:17
test_marshal.py
20.57
KB
-rw-r--r--
2025-06-03 22:17
test_math.py
87.4
KB
-rw-r--r--
2025-06-03 22:17
test_memoryio.py
31.48
KB
-rw-r--r--
2025-06-03 22:17
test_memoryview.py
17.78
KB
-rw-r--r--
2025-06-03 22:17
test_metaclass.py
6.21
KB
-rw-r--r--
2025-06-03 22:17
test_mimetypes.py
13.16
KB
-rw-r--r--
2025-06-03 22:17
test_minidom.py
68.07
KB
-rw-r--r--
2025-06-19 15:26
test_mmap.py
31.02
KB
-rw-r--r--
2025-06-03 22:17
test_module.py
10.22
KB
-rw-r--r--
2025-06-03 22:17
test_modulefinder.py
12.2
KB
-rw-r--r--
2025-06-03 22:17
test_msilib.py
5.03
KB
-rw-r--r--
2025-06-03 22:17
test_multibytecodec.py
14.99
KB
-rw-r--r--
2025-06-03 22:17
test_multiprocessing_fork.py
477
B
-rw-r--r--
2025-06-03 22:17
test_multiprocessing_forkserver.py
392
B
-rw-r--r--
2025-06-03 22:17
test_multiprocessing_main_handling.py
11.45
KB
-rw-r--r--
2025-06-03 22:17
test_multiprocessing_spawn.py
277
B
-rw-r--r--
2025-06-03 22:17
test_named_expressions.py
20.13
KB
-rw-r--r--
2025-06-03 22:17
test_netrc.py
5.96
KB
-rw-r--r--
2025-06-03 22:17
test_nis.py
1.13
KB
-rw-r--r--
2025-06-03 22:17
test_nntplib.py
62.38
KB
-rw-r--r--
2025-06-03 22:17
test_ntpath.py
44.37
KB
-rw-r--r--
2025-06-03 22:17
test_numeric_tower.py
7.18
KB
-rw-r--r--
2025-06-03 22:17
test_opcodes.py
3.61
KB
-rw-r--r--
2025-06-03 22:17
test_openpty.py
600
B
-rw-r--r--
2025-06-03 22:17
test_operator.py
23.9
KB
-rw-r--r--
2025-06-03 22:17
test_optparse.py
60.95
KB
-rw-r--r--
2025-06-03 22:17
test_ordered_dict.py
31.47
KB
-rw-r--r--
2025-06-03 22:17
test_os.py
159.48
KB
-rw-r--r--
2025-06-03 22:17
test_ossaudiodev.py
7.03
KB
-rw-r--r--
2025-06-03 22:17
test_osx_env.py
1.3
KB
-rw-r--r--
2025-06-03 22:17
test_parser.py
37.8
KB
-rw-r--r--
2025-06-03 22:17
test_pathlib.py
104.53
KB
-rw-r--r--
2025-06-03 22:17
test_pdb.py
60.3
KB
-rw-r--r--
2025-06-03 22:17
test_peepholer.py
20.22
KB
-rw-r--r--
2025-06-03 22:17
test_peg_parser.py
23.31
KB
-rw-r--r--
2025-06-03 22:17
test_pickle.py
18.96
KB
-rw-r--r--
2025-06-03 22:17
test_picklebuffer.py
4.96
KB
-rw-r--r--
2025-06-03 22:17
test_pickletools.py
4.34
KB
-rw-r--r--
2025-06-03 22:17
test_pipes.py
6.55
KB
-rw-r--r--
2025-06-03 22:17
test_pkg.py
9.59
KB
-rw-r--r--
2025-06-03 22:17
test_pkgutil.py
22.74
KB
-rw-r--r--
2025-06-03 22:17
test_platform.py
16.55
KB
-rw-r--r--
2025-06-03 22:17
test_plistlib.py
38.68
KB
-rw-r--r--
2025-06-03 22:17
test_poll.py
7.18
KB
-rw-r--r--
2025-06-03 22:17
test_popen.py
2
KB
-rw-r--r--
2025-06-03 22:17
test_poplib.py
17.36
KB
-rw-r--r--
2025-06-03 22:17
test_positional_only_arg.py
17.77
KB
-rw-r--r--
2025-06-03 22:17
test_posix.py
85.96
KB
-rw-r--r--
2025-06-03 22:17
test_posixpath.py
41.26
KB
-rw-r--r--
2025-06-03 22:17
test_pow.py
5.44
KB
-rw-r--r--
2025-06-03 22:17
test_pprint.py
45.34
KB
-rw-r--r--
2025-06-03 22:17
test_print.py
7.37
KB
-rw-r--r--
2025-06-03 22:17
test_profile.py
8.67
KB
-rw-r--r--
2025-06-03 22:17
test_property.py
9.45
KB
-rw-r--r--
2025-06-03 22:17
test_pstats.py
3.56
KB
-rw-r--r--
2025-06-03 22:17
test_pty.py
11.99
KB
-rw-r--r--
2025-06-03 22:17
test_pulldom.py
12.66
KB
-rw-r--r--
2025-06-03 22:17
test_pwd.py
4.17
KB
-rw-r--r--
2025-06-03 22:17
test_py_compile.py
10.85
KB
-rw-r--r--
2025-06-19 15:26
test_pyclbr.py
9.89
KB
-rw-r--r--
2025-06-03 22:17
test_pydoc.py
59.93
KB
-rw-r--r--
2025-06-03 22:17
test_pyexpat.py
28.42
KB
-rw-r--r--
2025-06-03 22:17
test_queue.py
20.42
KB
-rw-r--r--
2025-06-03 22:17
test_quopri.py
7.78
KB
-rw-r--r--
2025-06-03 22:17
test_raise.py
13.44
KB
-rw-r--r--
2025-06-03 22:17
test_random.py
51.57
KB
-rw-r--r--
2025-06-03 22:17
test_range.py
24.33
KB
-rw-r--r--
2025-06-03 22:17
test_re.py
111.78
KB
-rw-r--r--
2025-06-03 22:17
test_readline.py
13.29
KB
-rw-r--r--
2025-06-03 22:17
test_regrtest.py
47.82
KB
-rw-r--r--
2025-06-03 22:17
test_repl.py
3.96
KB
-rw-r--r--
2025-06-03 22:17
test_reprlib.py
15.12
KB
-rw-r--r--
2025-06-03 22:17
test_resource.py
6.96
KB
-rw-r--r--
2025-06-03 22:17
test_richcmp.py
11.91
KB
-rw-r--r--
2025-06-03 22:17
test_rlcompleter.py
7.1
KB
-rw-r--r--
2025-06-03 22:17
test_robotparser.py
10.83
KB
-rw-r--r--
2025-06-03 22:17
test_runpy.py
33.8
KB
-rw-r--r--
2025-06-03 22:17
test_sax.py
48.19
KB
-rw-r--r--
2025-06-03 22:17
test_sched.py
6.39
KB
-rw-r--r--
2025-06-03 22:17
test_scope.py
19.83
KB
-rw-r--r--
2025-06-03 22:17
test_script_helper.py
5.78
KB
-rw-r--r--
2025-06-03 22:17
test_secrets.py
4.28
KB
-rw-r--r--
2025-06-03 22:17
test_select.py
2.69
KB
-rw-r--r--
2025-06-03 22:17
test_selectors.py
18.23
KB
-rw-r--r--
2025-06-03 22:17
test_set.py
70.16
KB
-rw-r--r--
2025-06-03 22:17
test_setcomps.py
4.15
KB
-rw-r--r--
2025-06-03 22:17
test_shelve.py
5.96
KB
-rw-r--r--
2025-06-03 22:17
test_shlex.py
13.48
KB
-rw-r--r--
2025-06-03 22:17
test_shutil.py
104.25
KB
-rw-r--r--
2025-06-03 22:17
test_signal.py
48
KB
-rw-r--r--
2025-06-03 22:17
test_site.py
26.72
KB
-rw-r--r--
2025-06-03 22:17
test_slice.py
8.25
KB
-rw-r--r--
2025-06-03 22:17
test_smtpd.py
40.32
KB
-rw-r--r--
2025-06-03 22:17
test_smtplib.py
59.72
KB
-rw-r--r--
2025-06-03 22:17
test_smtpnet.py
2.94
KB
-rw-r--r--
2025-06-03 22:17
test_sndhdr.py
1.43
KB
-rw-r--r--
2025-06-03 22:17
test_socket.py
250.24
KB
-rw-r--r--
2025-06-03 22:17
test_socketserver.py
17.69
KB
-rw-r--r--
2025-06-03 22:17
test_sort.py
13.42
KB
-rw-r--r--
2025-06-03 22:17
test_source_encoding.py
8
KB
-rw-r--r--
2025-06-03 22:17
test_spwd.py
2.71
KB
-rw-r--r--
2025-06-03 22:17
test_sqlite.py
948
B
-rw-r--r--
2025-06-03 22:17
test_ssl.py
215.94
KB
-rw-r--r--
2025-06-03 22:17
test_startfile.py
1.29
KB
-rw-r--r--
2025-06-03 22:17
test_stat.py
8.3
KB
-rw-r--r--
2025-06-03 22:17
test_statistics.py
109.11
KB
-rw-r--r--
2025-06-03 22:17
test_strftime.py
7.54
KB
-rw-r--r--
2025-06-03 22:17
test_string.py
19.8
KB
-rw-r--r--
2025-06-03 22:17
test_string_literals.py
9.97
KB
-rw-r--r--
2025-06-03 22:17
test_stringprep.py
3.04
KB
-rw-r--r--
2025-06-03 22:17
test_strptime.py
34.42
KB
-rw-r--r--
2025-06-03 22:17
test_strtod.py
20.06
KB
-rw-r--r--
2025-06-03 22:17
test_struct.py
35.18
KB
-rw-r--r--
2025-06-03 22:17
test_structmembers.py
4.7
KB
-rw-r--r--
2025-06-03 22:17
test_structseq.py
3.87
KB
-rw-r--r--
2025-06-03 22:17
test_subclassinit.py
8.12
KB
-rw-r--r--
2025-06-03 22:17
test_subprocess.py
152.71
KB
-rw-r--r--
2025-06-03 22:17
test_sunau.py
5.98
KB
-rw-r--r--
2025-06-03 22:17
test_sundry.py
2.07
KB
-rw-r--r--
2025-06-03 22:17
test_super.py
9.6
KB
-rw-r--r--
2025-06-03 22:17
test_support.py
25.3
KB
-rw-r--r--
2025-06-03 22:17
test_symbol.py
2.06
KB
-rw-r--r--
2025-06-03 22:17
test_symtable.py
9.09
KB
-rw-r--r--
2025-06-03 22:17
test_syntax.py
34.08
KB
-rw-r--r--
2025-06-03 22:17
test_sys.py
55.28
KB
-rw-r--r--
2025-06-03 22:17
test_sys_setprofile.py
12.31
KB
-rw-r--r--
2025-06-03 22:17
test_sys_settrace.py
48.64
KB
-rw-r--r--
2025-06-03 22:17
test_sysconfig.py
17.01
KB
-rw-r--r--
2025-06-03 22:17
test_syslog.py
1.15
KB
-rw-r--r--
2025-06-03 22:17
test_tabnanny.py
13.41
KB
-rw-r--r--
2025-06-03 22:17
test_tarfile.py
165.71
KB
-rw-r--r--
2025-06-03 22:17
test_tcl.py
31.27
KB
-rw-r--r--
2025-06-03 22:17
test_telnetlib.py
12.75
KB
-rw-r--r--
2025-06-03 22:17
test_tempfile.py
59.32
KB
-rw-r--r--
2025-06-03 22:17
test_textwrap.py
38.84
KB
-rw-r--r--
2025-06-03 22:17
test_thread.py
8.42
KB
-rw-r--r--
2025-06-03 22:17
test_threadedtempfile.py
1.85
KB
-rw-r--r--
2025-06-03 22:17
test_threading.py
52.54
KB
-rw-r--r--
2025-06-03 22:17
test_threading_local.py
6.62
KB
-rw-r--r--
2025-06-03 22:17
test_threadsignals.py
10.06
KB
-rw-r--r--
2025-06-03 22:17
test_time.py
39.88
KB
-rw-r--r--
2025-06-03 22:17
test_timeit.py
14.8
KB
-rw-r--r--
2025-06-03 22:17
test_timeout.py
11.01
KB
-rw-r--r--
2025-06-03 22:17
test_tix.py
932
B
-rw-r--r--
2025-06-03 22:17
test_tk.py
501
B
-rw-r--r--
2025-06-03 22:17
test_tokenize.py
63.79
KB
-rw-r--r--
2025-06-03 22:17
test_trace.py
19.98
KB
-rw-r--r--
2025-06-03 22:17
test_traceback.py
49.59
KB
-rw-r--r--
2025-06-03 22:17
test_tracemalloc.py
39.12
KB
-rw-r--r--
2025-06-03 22:17
test_ttk_guionly.py
941
B
-rw-r--r--
2025-06-03 22:17
test_ttk_textonly.py
16.67
KB
-rw-r--r--
2025-06-03 22:17
test_tuple.py
18.85
KB
-rw-r--r--
2025-06-03 22:17
test_turtle.py
12.66
KB
-rw-r--r--
2025-06-03 22:17
test_type_comments.py
10.53
KB
-rw-r--r--
2025-06-03 22:17
test_typechecks.py
2.55
KB
-rw-r--r--
2025-06-03 22:17
test_types.py
59.86
KB
-rw-r--r--
2025-06-03 22:17
test_typing.py
140.02
KB
-rw-r--r--
2025-06-03 22:17
test_ucn.py
9.5
KB
-rw-r--r--
2025-06-03 22:17
test_unary.py
1.63
KB
-rw-r--r--
2025-06-03 22:17
test_unicode.py
135.54
KB
-rw-r--r--
2025-06-03 22:17
test_unicode_file.py
5.69
KB
-rw-r--r--
2025-06-03 22:17
test_unicode_file_functions.py
6.65
KB
-rw-r--r--
2025-06-03 22:17
test_unicode_identifiers.py
984
B
-rw-r--r--
2025-06-03 22:17
test_unicodedata.py
15.63
KB
-rw-r--r--
2025-06-03 22:17
test_unittest.py
226
B
-rw-r--r--
2025-06-03 22:17
test_univnewlines.py
3.83
KB
-rw-r--r--
2025-06-03 22:17
test_unpack.py
3.01
KB
-rw-r--r--
2025-06-03 22:17
test_unpack_ex.py
10.06
KB
-rw-r--r--
2025-06-03 22:17
test_unparse.py
18.23
KB
-rw-r--r--
2025-06-03 22:17
test_urllib.py
69.92
KB
-rw-r--r--
2025-06-03 22:17
test_urllib2.py
78.67
KB
-rw-r--r--
2025-06-03 22:17
test_urllib2_localnet.py
25.41
KB
-rw-r--r--
2025-06-03 22:17
test_urllib2net.py
12.7
KB
-rw-r--r--
2025-06-03 22:17
test_urllib_response.py
1.89
KB
-rw-r--r--
2025-06-03 22:17
test_urllibnet.py
9.28
KB
-rw-r--r--
2025-06-03 22:17
test_urlparse.py
74.6
KB
-rw-r--r--
2025-06-03 22:17
test_userdict.py
7.56
KB
-rw-r--r--
2025-06-03 22:17
test_userlist.py
1.97
KB
-rw-r--r--
2025-06-03 22:17
test_userstring.py
2.4
KB
-rw-r--r--
2025-06-03 22:17
test_utf8_mode.py
9.22
KB
-rw-r--r--
2025-06-03 22:17
test_utf8source.py
1.15
KB
-rw-r--r--
2025-06-03 22:17
test_uu.py
8.85
KB
-rw-r--r--
2025-06-03 22:17
test_uuid.py
39.95
KB
-rw-r--r--
2025-06-03 22:17
test_venv.py
25.64
KB
-rw-r--r--
2025-06-03 22:17
test_wait3.py
1.81
KB
-rw-r--r--
2025-06-03 22:17
test_wait4.py
1.16
KB
-rw-r--r--
2025-06-03 22:17
test_wave.py
6.53
KB
-rw-r--r--
2025-06-03 22:17
test_weakref.py
74.31
KB
-rw-r--r--
2025-06-03 22:17
test_weakset.py
15.42
KB
-rw-r--r--
2025-06-03 22:17
test_webbrowser.py
10.47
KB
-rw-r--r--
2025-06-03 22:17
test_winconsoleio.py
6.56
KB
-rw-r--r--
2025-06-03 22:17
test_winreg.py
21.27
KB
-rw-r--r--
2025-06-03 22:17
test_winsound.py
4.57
KB
-rw-r--r--
2025-06-03 22:17
test_with.py
25.99
KB
-rw-r--r--
2025-06-03 22:17
test_wsgiref.py
30.15
KB
-rw-r--r--
2025-06-03 22:17
test_xdrlib.py
2.17
KB
-rw-r--r--
2025-06-03 22:17
test_xml_dom_minicompat.py
4.18
KB
-rw-r--r--
2025-06-03 22:17
test_xml_etree.py
158.85
KB
-rw-r--r--
2025-06-03 22:17
test_xml_etree_c.py
8.46
KB
-rw-r--r--
2025-06-03 22:17
test_xmlrpc.py
57.56
KB
-rw-r--r--
2025-06-03 22:17
test_xmlrpc_net.py
954
B
-rw-r--r--
2025-06-03 22:17
test_xxtestfuzz.py
670
B
-rw-r--r--
2025-06-03 22:17
test_yield_from.py
30.01
KB
-rw-r--r--
2025-06-03 22:17
test_zipapp.py
15.92
KB
-rw-r--r--
2025-06-03 22:17
test_zipfile.py
123.16
KB
-rw-r--r--
2025-06-03 22:17
test_zipfile64.py
5.8
KB
-rw-r--r--
2025-06-03 22:17
test_zipimport.py
29.3
KB
-rw-r--r--
2025-06-03 22:17
test_zipimport_support.py
10.44
KB
-rw-r--r--
2025-06-03 22:17
test_zlib.py
34.73
KB
-rw-r--r--
2025-06-03 22:17
testcodec.py
1.02
KB
-rw-r--r--
2025-06-03 22:17
testtar.tar
425
KB
-rw-r--r--
2025-06-03 22:17
tf_inherit_check.py
714
B
-rw-r--r--
2025-06-03 22:17
time_hashlib.py
2.87
KB
-rw-r--r--
2025-06-03 22:17
tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt
443
B
-rw-r--r--
2025-06-03 22:17
tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt
302
B
-rw-r--r--
2025-06-03 22:17
tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
421
B
-rw-r--r--
2025-06-03 22:17
tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt
326
B
-rw-r--r--
2025-06-03 22:17
tokenize_tests.txt
2.65
KB
-rw-r--r--
2025-06-03 22:17
win_console_handler.py
1.38
KB
-rw-r--r--
2025-06-03 22:17
xmltests.py
499
B
-rw-r--r--
2025-06-03 22:17
zip_cp437_header.zip
270
B
-rw-r--r--
2025-06-03 22:17
zipdir.zip
374
B
-rw-r--r--
2025-06-03 22:17
Save
Rename
from test import support from test.support import socket_helper from contextlib import contextmanager import imaplib import os.path import socketserver import time import calendar import threading import socket from test.support import (reap_threads, verbose, run_with_tz, run_with_locale, cpython_only) from test.support import hashlib_helper import unittest from unittest import mock from datetime import datetime, timezone, timedelta try: import ssl except ImportError: ssl = None CERTFILE = os.path.join(os.path.dirname(__file__) or os.curdir, "keycert3.pem") CAFILE = os.path.join(os.path.dirname(__file__) or os.curdir, "pycacert.pem") class TestImaplib(unittest.TestCase): def test_Internaldate2tuple(self): t0 = calendar.timegm((2000, 1, 1, 0, 0, 0, -1, -1, -1)) tt = imaplib.Internaldate2tuple( b'25 (INTERNALDATE "01-Jan-2000 00:00:00 +0000")') self.assertEqual(time.mktime(tt), t0) tt = imaplib.Internaldate2tuple( b'25 (INTERNALDATE "01-Jan-2000 11:30:00 +1130")') self.assertEqual(time.mktime(tt), t0) tt = imaplib.Internaldate2tuple( b'25 (INTERNALDATE "31-Dec-1999 12:30:00 -1130")') self.assertEqual(time.mktime(tt), t0) @run_with_tz('MST+07MDT,M4.1.0,M10.5.0') def test_Internaldate2tuple_issue10941(self): self.assertNotEqual(imaplib.Internaldate2tuple( b'25 (INTERNALDATE "02-Apr-2000 02:30:00 +0000")'), imaplib.Internaldate2tuple( b'25 (INTERNALDATE "02-Apr-2000 03:30:00 +0000")')) def timevalues(self): return [2000000000, 2000000000.0, time.localtime(2000000000), (2033, 5, 18, 5, 33, 20, -1, -1, -1), (2033, 5, 18, 5, 33, 20, -1, -1, 1), datetime.fromtimestamp(2000000000, timezone(timedelta(0, 2 * 60 * 60))), '"18-May-2033 05:33:20 +0200"'] @run_with_locale('LC_ALL', 'de_DE', 'fr_FR') # DST rules included to work around quirk where the Gnu C library may not # otherwise restore the previous time zone @run_with_tz('STD-1DST,M3.2.0,M11.1.0') def test_Time2Internaldate(self): expected = '"18-May-2033 05:33:20 +0200"' for t in self.timevalues(): internal = imaplib.Time2Internaldate(t) self.assertEqual(internal, expected) def test_that_Time2Internaldate_returns_a_result(self): # Without tzset, we can check only that it successfully # produces a result, not the correctness of the result itself, # since the result depends on the timezone the machine is in. for t in self.timevalues(): imaplib.Time2Internaldate(t) def test_imap4_host_default_value(self): # Check whether the IMAP4_PORT is truly unavailable. with socket.socket() as s: try: s.connect(('', imaplib.IMAP4_PORT)) self.skipTest( "Cannot run the test with local IMAP server running.") except socket.error: pass # This is the exception that should be raised. expected_errnos = socket_helper.get_socket_conn_refused_errs() with self.assertRaises(OSError) as cm: imaplib.IMAP4() self.assertIn(cm.exception.errno, expected_errnos) if ssl: class SecureTCPServer(socketserver.TCPServer): def get_request(self): newsocket, fromaddr = self.socket.accept() context = ssl.SSLContext() context.load_cert_chain(CERTFILE) connstream = context.wrap_socket(newsocket, server_side=True) return connstream, fromaddr IMAP4_SSL = imaplib.IMAP4_SSL else: class SecureTCPServer: pass IMAP4_SSL = None class SimpleIMAPHandler(socketserver.StreamRequestHandler): timeout = support.LOOPBACK_TIMEOUT continuation = None capabilities = '' def setup(self): super().setup() self.server.is_selected = False self.server.logged = None def _send(self, message): if verbose: print("SENT: %r" % message.strip()) self.wfile.write(message) def _send_line(self, message): self._send(message + b'\r\n') def _send_textline(self, message): self._send_line(message.encode('ASCII')) def _send_tagged(self, tag, code, message): self._send_textline(' '.join((tag, code, message))) def handle(self): # Send a welcome message. self._send_textline('* OK IMAP4rev1') while 1: # Gather up input until we receive a line terminator or we timeout. # Accumulate read(1) because it's simpler to handle the differences # between naked sockets and SSL sockets. line = b'' while 1: try: part = self.rfile.read(1) if part == b'': # Naked sockets return empty strings.. return line += part except OSError: # ..but SSLSockets raise exceptions. return if line.endswith(b'\r\n'): break if verbose: print('GOT: %r' % line.strip()) if self.continuation: try: self.continuation.send(line) except StopIteration: self.continuation = None continue splitline = line.decode('ASCII').split() tag = splitline[0] cmd = splitline[1] args = splitline[2:] if hasattr(self, 'cmd_' + cmd): continuation = getattr(self, 'cmd_' + cmd)(tag, args) if continuation: self.continuation = continuation next(continuation) else: self._send_tagged(tag, 'BAD', cmd + ' unknown') def cmd_CAPABILITY(self, tag, args): caps = ('IMAP4rev1 ' + self.capabilities if self.capabilities else 'IMAP4rev1') self._send_textline('* CAPABILITY ' + caps) self._send_tagged(tag, 'OK', 'CAPABILITY completed') def cmd_LOGOUT(self, tag, args): self.server.logged = None self._send_textline('* BYE IMAP4ref1 Server logging out') self._send_tagged(tag, 'OK', 'LOGOUT completed') def cmd_LOGIN(self, tag, args): self.server.logged = args[0] self._send_tagged(tag, 'OK', 'LOGIN completed') def cmd_SELECT(self, tag, args): self.server.is_selected = True self._send_line(b'* 2 EXISTS') self._send_tagged(tag, 'OK', '[READ-WRITE] SELECT completed.') def cmd_UNSELECT(self, tag, args): if self.server.is_selected: self.server.is_selected = False self._send_tagged(tag, 'OK', 'Returned to authenticated state. (Success)') else: self._send_tagged(tag, 'BAD', 'No mailbox selected') class NewIMAPTestsMixin(): client = None def _setup(self, imap_handler, connect=True): """ Sets up imap_handler for tests. imap_handler should inherit from either: - SimpleIMAPHandler - for testing IMAP commands, - socketserver.StreamRequestHandler - if raw access to stream is needed. Returns (client, server). """ class TestTCPServer(self.server_class): def handle_error(self, request, client_address): """ End request and raise the error if one occurs. """ self.close_request(request) self.server_close() raise self.addCleanup(self._cleanup) self.server = self.server_class((socket_helper.HOST, 0), imap_handler) self.thread = threading.Thread( name=self._testMethodName+'-server', target=self.server.serve_forever, # Short poll interval to make the test finish quickly. # Time between requests is short enough that we won't wake # up spuriously too many times. kwargs={'poll_interval': 0.01}) self.thread.daemon = True # In case this function raises. self.thread.start() if connect: self.client = self.imap_class(*self.server.server_address) return self.client, self.server def _cleanup(self): """ Cleans up the test server. This method should not be called manually, it is added to the cleanup queue in the _setup method already. """ # if logout was called already we'd raise an exception trying to # shutdown the client once again if self.client is not None and self.client.state != 'LOGOUT': self.client.shutdown() # cleanup the server self.server.shutdown() self.server.server_close() support.join_thread(self.thread) # Explicitly clear the attribute to prevent dangling thread self.thread = None def test_EOF_without_complete_welcome_message(self): # http://bugs.python.org/issue5949 class EOFHandler(socketserver.StreamRequestHandler): def handle(self): self.wfile.write(b'* OK') _, server = self._setup(EOFHandler, connect=False) self.assertRaises(imaplib.IMAP4.abort, self.imap_class, *server.server_address) def test_line_termination(self): class BadNewlineHandler(SimpleIMAPHandler): def cmd_CAPABILITY(self, tag, args): self._send(b'* CAPABILITY IMAP4rev1 AUTH\n') self._send_tagged(tag, 'OK', 'CAPABILITY completed') _, server = self._setup(BadNewlineHandler, connect=False) self.assertRaises(imaplib.IMAP4.abort, self.imap_class, *server.server_address) def test_enable_raises_error_if_not_AUTH(self): class EnableHandler(SimpleIMAPHandler): capabilities = 'AUTH ENABLE UTF8=ACCEPT' client, _ = self._setup(EnableHandler) self.assertFalse(client.utf8_enabled) with self.assertRaisesRegex(imaplib.IMAP4.error, 'ENABLE.*NONAUTH'): client.enable('foo') self.assertFalse(client.utf8_enabled) def test_enable_raises_error_if_no_capability(self): client, _ = self._setup(SimpleIMAPHandler) with self.assertRaisesRegex(imaplib.IMAP4.error, 'does not support ENABLE'): client.enable('foo') def test_enable_UTF8_raises_error_if_not_supported(self): client, _ = self._setup(SimpleIMAPHandler) typ, data = client.login('user', 'pass') self.assertEqual(typ, 'OK') with self.assertRaisesRegex(imaplib.IMAP4.error, 'does not support ENABLE'): client.enable('UTF8=ACCEPT') def test_enable_UTF8_True_append(self): class UTF8AppendServer(SimpleIMAPHandler): capabilities = 'ENABLE UTF8=ACCEPT' def cmd_ENABLE(self, tag, args): self._send_tagged(tag, 'OK', 'ENABLE successful') def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+') self.server.response = yield self._send_tagged(tag, 'OK', 'FAKEAUTH successful') def cmd_APPEND(self, tag, args): self._send_textline('+') self.server.response = yield self._send_tagged(tag, 'OK', 'okay') client, server = self._setup(UTF8AppendServer) self.assertEqual(client._encoding, 'ascii') code, _ = client.authenticate('MYAUTH', lambda x: b'fake') self.assertEqual(code, 'OK') self.assertEqual(server.response, b'ZmFrZQ==\r\n') # b64 encoded 'fake' code, _ = client.enable('UTF8=ACCEPT') self.assertEqual(code, 'OK') self.assertEqual(client._encoding, 'utf-8') msg_string = 'Subject: üñí©öðé' typ, data = client.append(None, None, None, msg_string.encode('utf-8')) self.assertEqual(typ, 'OK') self.assertEqual(server.response, ('UTF8 (%s)\r\n' % msg_string).encode('utf-8')) def test_search_disallows_charset_in_utf8_mode(self): class UTF8Server(SimpleIMAPHandler): capabilities = 'AUTH ENABLE UTF8=ACCEPT' def cmd_ENABLE(self, tag, args): self._send_tagged(tag, 'OK', 'ENABLE successful') def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+') self.server.response = yield self._send_tagged(tag, 'OK', 'FAKEAUTH successful') client, _ = self._setup(UTF8Server) typ, _ = client.authenticate('MYAUTH', lambda x: b'fake') self.assertEqual(typ, 'OK') typ, _ = client.enable('UTF8=ACCEPT') self.assertEqual(typ, 'OK') self.assertTrue(client.utf8_enabled) with self.assertRaisesRegex(imaplib.IMAP4.error, 'charset.*UTF8'): client.search('foo', 'bar') def test_bad_auth_name(self): class MyServer(SimpleIMAPHandler): def cmd_AUTHENTICATE(self, tag, args): self._send_tagged(tag, 'NO', 'unrecognized authentication type {}'.format(args[0])) client, _ = self._setup(MyServer) with self.assertRaisesRegex(imaplib.IMAP4.error, 'unrecognized authentication type METHOD'): client.authenticate('METHOD', lambda: 1) def test_invalid_authentication(self): class MyServer(SimpleIMAPHandler): def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+') self.response = yield self._send_tagged(tag, 'NO', '[AUTHENTICATIONFAILED] invalid') client, _ = self._setup(MyServer) with self.assertRaisesRegex(imaplib.IMAP4.error, r'\[AUTHENTICATIONFAILED\] invalid'): client.authenticate('MYAUTH', lambda x: b'fake') def test_valid_authentication_bytes(self): class MyServer(SimpleIMAPHandler): def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+') self.server.response = yield self._send_tagged(tag, 'OK', 'FAKEAUTH successful') client, server = self._setup(MyServer) code, _ = client.authenticate('MYAUTH', lambda x: b'fake') self.assertEqual(code, 'OK') self.assertEqual(server.response, b'ZmFrZQ==\r\n') # b64 encoded 'fake' def test_valid_authentication_plain_text(self): class MyServer(SimpleIMAPHandler): def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+') self.server.response = yield self._send_tagged(tag, 'OK', 'FAKEAUTH successful') client, server = self._setup(MyServer) code, _ = client.authenticate('MYAUTH', lambda x: 'fake') self.assertEqual(code, 'OK') self.assertEqual(server.response, b'ZmFrZQ==\r\n') # b64 encoded 'fake' @hashlib_helper.requires_hashdigest('md5', openssl=True) def test_login_cram_md5_bytes(self): class AuthHandler(SimpleIMAPHandler): capabilities = 'LOGINDISABLED AUTH=CRAM-MD5' def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+ PDE4OTYuNjk3MTcwOTUyQHBvc3RvZmZpY2Uucm' 'VzdG9uLm1jaS5uZXQ=') r = yield if (r == b'dGltIGYxY2E2YmU0NjRiOWVmYT' b'FjY2E2ZmZkNmNmMmQ5ZjMy\r\n'): self._send_tagged(tag, 'OK', 'CRAM-MD5 successful') else: self._send_tagged(tag, 'NO', 'No access') client, _ = self._setup(AuthHandler) self.assertTrue('AUTH=CRAM-MD5' in client.capabilities) ret, _ = client.login_cram_md5("tim", b"tanstaaftanstaaf") self.assertEqual(ret, "OK") @hashlib_helper.requires_hashdigest('md5', openssl=True) def test_login_cram_md5_plain_text(self): class AuthHandler(SimpleIMAPHandler): capabilities = 'LOGINDISABLED AUTH=CRAM-MD5' def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+ PDE4OTYuNjk3MTcwOTUyQHBvc3RvZmZpY2Uucm' 'VzdG9uLm1jaS5uZXQ=') r = yield if (r == b'dGltIGYxY2E2YmU0NjRiOWVmYT' b'FjY2E2ZmZkNmNmMmQ5ZjMy\r\n'): self._send_tagged(tag, 'OK', 'CRAM-MD5 successful') else: self._send_tagged(tag, 'NO', 'No access') client, _ = self._setup(AuthHandler) self.assertTrue('AUTH=CRAM-MD5' in client.capabilities) ret, _ = client.login_cram_md5("tim", "tanstaaftanstaaf") self.assertEqual(ret, "OK") def test_aborted_authentication(self): class MyServer(SimpleIMAPHandler): def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+') self.response = yield if self.response == b'*\r\n': self._send_tagged( tag, 'NO', '[AUTHENTICATIONFAILED] aborted') else: self._send_tagged(tag, 'OK', 'MYAUTH successful') client, _ = self._setup(MyServer) with self.assertRaisesRegex(imaplib.IMAP4.error, r'\[AUTHENTICATIONFAILED\] aborted'): client.authenticate('MYAUTH', lambda x: None) @mock.patch('imaplib._MAXLINE', 10) def test_linetoolong(self): class TooLongHandler(SimpleIMAPHandler): def handle(self): # send response line longer than the limit set in the next line self.wfile.write(b'* OK ' + 11 * b'x' + b'\r\n') _, server = self._setup(TooLongHandler, connect=False) with self.assertRaisesRegex(imaplib.IMAP4.error, 'got more than 10 bytes'): self.imap_class(*server.server_address) def test_simple_with_statement(self): _, server = self._setup(SimpleIMAPHandler, connect=False) with self.imap_class(*server.server_address): pass def test_imaplib_timeout_test(self): _, server = self._setup(SimpleIMAPHandler) addr = server.server_address[1] client = self.imap_class("localhost", addr, timeout=None) self.assertEqual(client.sock.timeout, None) client.shutdown() client = self.imap_class("localhost", addr, timeout=support.LOOPBACK_TIMEOUT) self.assertEqual(client.sock.timeout, support.LOOPBACK_TIMEOUT) client.shutdown() with self.assertRaises(ValueError): client = self.imap_class("localhost", addr, timeout=0) def test_imaplib_timeout_functionality_test(self): class TimeoutHandler(SimpleIMAPHandler): def handle(self): time.sleep(1) SimpleIMAPHandler.handle(self) _, server = self._setup(TimeoutHandler) addr = server.server_address[1] with self.assertRaises(socket.timeout): client = self.imap_class("localhost", addr, timeout=0.001) def test_with_statement(self): _, server = self._setup(SimpleIMAPHandler, connect=False) with self.imap_class(*server.server_address) as imap: imap.login('user', 'pass') self.assertEqual(server.logged, 'user') self.assertIsNone(server.logged) def test_with_statement_logout(self): # It is legal to log out explicitly inside the with block _, server = self._setup(SimpleIMAPHandler, connect=False) with self.imap_class(*server.server_address) as imap: imap.login('user', 'pass') self.assertEqual(server.logged, 'user') imap.logout() self.assertIsNone(server.logged) self.assertIsNone(server.logged) # command tests def test_login(self): client, _ = self._setup(SimpleIMAPHandler) typ, data = client.login('user', 'pass') self.assertEqual(typ, 'OK') self.assertEqual(data[0], b'LOGIN completed') self.assertEqual(client.state, 'AUTH') def test_logout(self): client, _ = self._setup(SimpleIMAPHandler) typ, data = client.login('user', 'pass') self.assertEqual(typ, 'OK') self.assertEqual(data[0], b'LOGIN completed') typ, data = client.logout() self.assertEqual(typ, 'BYE', (typ, data)) self.assertEqual(data[0], b'IMAP4ref1 Server logging out', (typ, data)) self.assertEqual(client.state, 'LOGOUT') def test_lsub(self): class LsubCmd(SimpleIMAPHandler): def cmd_LSUB(self, tag, args): self._send_textline('* LSUB () "." directoryA') return self._send_tagged(tag, 'OK', 'LSUB completed') client, _ = self._setup(LsubCmd) client.login('user', 'pass') typ, data = client.lsub() self.assertEqual(typ, 'OK') self.assertEqual(data[0], b'() "." directoryA') def test_unselect(self): client, _ = self._setup(SimpleIMAPHandler) client.login('user', 'pass') typ, data = client.select() self.assertEqual(typ, 'OK') self.assertEqual(data[0], b'2') typ, data = client.unselect() self.assertEqual(typ, 'OK') self.assertEqual(data[0], b'Returned to authenticated state. (Success)') self.assertEqual(client.state, 'AUTH') class NewIMAPTests(NewIMAPTestsMixin, unittest.TestCase): imap_class = imaplib.IMAP4 server_class = socketserver.TCPServer @unittest.skipUnless(ssl, "SSL not available") class NewIMAPSSLTests(NewIMAPTestsMixin, unittest.TestCase): imap_class = IMAP4_SSL server_class = SecureTCPServer def test_ssl_raises(self): ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) self.assertEqual(ssl_context.verify_mode, ssl.CERT_REQUIRED) self.assertEqual(ssl_context.check_hostname, True) ssl_context.load_verify_locations(CAFILE) with self.assertRaisesRegex(ssl.CertificateError, "IP address mismatch, certificate is not valid for " "'127.0.0.1'"): _, server = self._setup(SimpleIMAPHandler) client = self.imap_class(*server.server_address, ssl_context=ssl_context) client.shutdown() def test_ssl_verified(self): ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) ssl_context.load_verify_locations(CAFILE) _, server = self._setup(SimpleIMAPHandler) client = self.imap_class("localhost", server.server_address[1], ssl_context=ssl_context) client.shutdown() # Mock the private method _connect(), so mark the test as specific # to CPython stdlib @cpython_only def test_certfile_arg_warn(self): with support.check_warnings(('', DeprecationWarning)): with mock.patch.object(self.imap_class, 'open'): with mock.patch.object(self.imap_class, '_connect'): self.imap_class('localhost', 143, certfile=CERTFILE) class ThreadedNetworkedTests(unittest.TestCase): server_class = socketserver.TCPServer imap_class = imaplib.IMAP4 def make_server(self, addr, hdlr): class MyServer(self.server_class): def handle_error(self, request, client_address): self.close_request(request) self.server_close() raise if verbose: print("creating server") server = MyServer(addr, hdlr) self.assertEqual(server.server_address, server.socket.getsockname()) if verbose: print("server created") print("ADDR =", addr) print("CLASS =", self.server_class) print("HDLR =", server.RequestHandlerClass) t = threading.Thread( name='%s serving' % self.server_class, target=server.serve_forever, # Short poll interval to make the test finish quickly. # Time between requests is short enough that we won't wake # up spuriously too many times. kwargs={'poll_interval': 0.01}) t.daemon = True # In case this function raises. t.start() if verbose: print("server running") return server, t def reap_server(self, server, thread): if verbose: print("waiting for server") server.shutdown() server.server_close() thread.join() if verbose: print("done") @contextmanager def reaped_server(self, hdlr): server, thread = self.make_server((socket_helper.HOST, 0), hdlr) try: yield server finally: self.reap_server(server, thread) @contextmanager def reaped_pair(self, hdlr): with self.reaped_server(hdlr) as server: client = self.imap_class(*server.server_address) try: yield server, client finally: client.logout() @reap_threads def test_connect(self): with self.reaped_server(SimpleIMAPHandler) as server: client = self.imap_class(*server.server_address) client.shutdown() @reap_threads def test_bracket_flags(self): # This violates RFC 3501, which disallows ']' characters in tag names, # but imaplib has allowed producing such tags forever, other programs # also produce them (eg: OtherInbox's Organizer app as of 20140716), # and Gmail, for example, accepts them and produces them. So we # support them. See issue #21815. class BracketFlagHandler(SimpleIMAPHandler): def handle(self): self.flags = ['Answered', 'Flagged', 'Deleted', 'Seen', 'Draft'] super().handle() def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+') self.server.response = yield self._send_tagged(tag, 'OK', 'FAKEAUTH successful') def cmd_SELECT(self, tag, args): flag_msg = ' \\'.join(self.flags) self._send_line(('* FLAGS (%s)' % flag_msg).encode('ascii')) self._send_line(b'* 2 EXISTS') self._send_line(b'* 0 RECENT') msg = ('* OK [PERMANENTFLAGS %s \\*)] Flags permitted.' % flag_msg) self._send_line(msg.encode('ascii')) self._send_tagged(tag, 'OK', '[READ-WRITE] SELECT completed.') def cmd_STORE(self, tag, args): new_flags = args[2].strip('(').strip(')').split() self.flags.extend(new_flags) flags_msg = '(FLAGS (%s))' % ' \\'.join(self.flags) msg = '* %s FETCH %s' % (args[0], flags_msg) self._send_line(msg.encode('ascii')) self._send_tagged(tag, 'OK', 'STORE completed.') with self.reaped_pair(BracketFlagHandler) as (server, client): code, data = client.authenticate('MYAUTH', lambda x: b'fake') self.assertEqual(code, 'OK') self.assertEqual(server.response, b'ZmFrZQ==\r\n') client.select('test') typ, [data] = client.store(b'1', "+FLAGS", "[test]") self.assertIn(b'[test]', data) client.select('test') typ, [data] = client.response('PERMANENTFLAGS') self.assertIn(b'[test]', data) @reap_threads def test_issue5949(self): class EOFHandler(socketserver.StreamRequestHandler): def handle(self): # EOF without sending a complete welcome message. self.wfile.write(b'* OK') with self.reaped_server(EOFHandler) as server: self.assertRaises(imaplib.IMAP4.abort, self.imap_class, *server.server_address) @reap_threads def test_line_termination(self): class BadNewlineHandler(SimpleIMAPHandler): def cmd_CAPABILITY(self, tag, args): self._send(b'* CAPABILITY IMAP4rev1 AUTH\n') self._send_tagged(tag, 'OK', 'CAPABILITY completed') with self.reaped_server(BadNewlineHandler) as server: self.assertRaises(imaplib.IMAP4.abort, self.imap_class, *server.server_address) class UTF8Server(SimpleIMAPHandler): capabilities = 'AUTH ENABLE UTF8=ACCEPT' def cmd_ENABLE(self, tag, args): self._send_tagged(tag, 'OK', 'ENABLE successful') def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+') self.server.response = yield self._send_tagged(tag, 'OK', 'FAKEAUTH successful') @reap_threads def test_enable_raises_error_if_not_AUTH(self): with self.reaped_pair(self.UTF8Server) as (server, client): self.assertFalse(client.utf8_enabled) self.assertRaises(imaplib.IMAP4.error, client.enable, 'foo') self.assertFalse(client.utf8_enabled) # XXX Also need a test that enable after SELECT raises an error. @reap_threads def test_enable_raises_error_if_no_capability(self): class NoEnableServer(self.UTF8Server): capabilities = 'AUTH' with self.reaped_pair(NoEnableServer) as (server, client): self.assertRaises(imaplib.IMAP4.error, client.enable, 'foo') @reap_threads def test_enable_UTF8_raises_error_if_not_supported(self): class NonUTF8Server(SimpleIMAPHandler): pass with self.assertRaises(imaplib.IMAP4.error): with self.reaped_pair(NonUTF8Server) as (server, client): typ, data = client.login('user', 'pass') self.assertEqual(typ, 'OK') client.enable('UTF8=ACCEPT') pass @reap_threads def test_enable_UTF8_True_append(self): class UTF8AppendServer(self.UTF8Server): def cmd_APPEND(self, tag, args): self._send_textline('+') self.server.response = yield self._send_tagged(tag, 'OK', 'okay') with self.reaped_pair(UTF8AppendServer) as (server, client): self.assertEqual(client._encoding, 'ascii') code, _ = client.authenticate('MYAUTH', lambda x: b'fake') self.assertEqual(code, 'OK') self.assertEqual(server.response, b'ZmFrZQ==\r\n') # b64 encoded 'fake' code, _ = client.enable('UTF8=ACCEPT') self.assertEqual(code, 'OK') self.assertEqual(client._encoding, 'utf-8') msg_string = 'Subject: üñí©öðé' typ, data = client.append( None, None, None, msg_string.encode('utf-8')) self.assertEqual(typ, 'OK') self.assertEqual( server.response, ('UTF8 (%s)\r\n' % msg_string).encode('utf-8') ) # XXX also need a test that makes sure that the Literal and Untagged_status # regexes uses unicode in UTF8 mode instead of the default ASCII. @reap_threads def test_search_disallows_charset_in_utf8_mode(self): with self.reaped_pair(self.UTF8Server) as (server, client): typ, _ = client.authenticate('MYAUTH', lambda x: b'fake') self.assertEqual(typ, 'OK') typ, _ = client.enable('UTF8=ACCEPT') self.assertEqual(typ, 'OK') self.assertTrue(client.utf8_enabled) self.assertRaises(imaplib.IMAP4.error, client.search, 'foo', 'bar') @reap_threads def test_bad_auth_name(self): class MyServer(SimpleIMAPHandler): def cmd_AUTHENTICATE(self, tag, args): self._send_tagged(tag, 'NO', 'unrecognized authentication ' 'type {}'.format(args[0])) with self.reaped_pair(MyServer) as (server, client): with self.assertRaises(imaplib.IMAP4.error): client.authenticate('METHOD', lambda: 1) @reap_threads def test_invalid_authentication(self): class MyServer(SimpleIMAPHandler): def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+') self.response = yield self._send_tagged(tag, 'NO', '[AUTHENTICATIONFAILED] invalid') with self.reaped_pair(MyServer) as (server, client): with self.assertRaises(imaplib.IMAP4.error): code, data = client.authenticate('MYAUTH', lambda x: b'fake') @reap_threads def test_valid_authentication(self): class MyServer(SimpleIMAPHandler): def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+') self.server.response = yield self._send_tagged(tag, 'OK', 'FAKEAUTH successful') with self.reaped_pair(MyServer) as (server, client): code, data = client.authenticate('MYAUTH', lambda x: b'fake') self.assertEqual(code, 'OK') self.assertEqual(server.response, b'ZmFrZQ==\r\n') # b64 encoded 'fake' with self.reaped_pair(MyServer) as (server, client): code, data = client.authenticate('MYAUTH', lambda x: 'fake') self.assertEqual(code, 'OK') self.assertEqual(server.response, b'ZmFrZQ==\r\n') # b64 encoded 'fake' @reap_threads @hashlib_helper.requires_hashdigest('md5', openssl=True) def test_login_cram_md5(self): class AuthHandler(SimpleIMAPHandler): capabilities = 'LOGINDISABLED AUTH=CRAM-MD5' def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+ PDE4OTYuNjk3MTcwOTUyQHBvc3RvZmZpY2Uucm' 'VzdG9uLm1jaS5uZXQ=') r = yield if (r == b'dGltIGYxY2E2YmU0NjRiOWVmYT' b'FjY2E2ZmZkNmNmMmQ5ZjMy\r\n'): self._send_tagged(tag, 'OK', 'CRAM-MD5 successful') else: self._send_tagged(tag, 'NO', 'No access') with self.reaped_pair(AuthHandler) as (server, client): self.assertTrue('AUTH=CRAM-MD5' in client.capabilities) ret, data = client.login_cram_md5("tim", "tanstaaftanstaaf") self.assertEqual(ret, "OK") with self.reaped_pair(AuthHandler) as (server, client): self.assertTrue('AUTH=CRAM-MD5' in client.capabilities) ret, data = client.login_cram_md5("tim", b"tanstaaftanstaaf") self.assertEqual(ret, "OK") @reap_threads def test_aborted_authentication(self): class MyServer(SimpleIMAPHandler): def cmd_AUTHENTICATE(self, tag, args): self._send_textline('+') self.response = yield if self.response == b'*\r\n': self._send_tagged(tag, 'NO', '[AUTHENTICATIONFAILED] aborted') else: self._send_tagged(tag, 'OK', 'MYAUTH successful') with self.reaped_pair(MyServer) as (server, client): with self.assertRaises(imaplib.IMAP4.error): code, data = client.authenticate('MYAUTH', lambda x: None) def test_linetoolong(self): class TooLongHandler(SimpleIMAPHandler): def handle(self): # Send a very long response line self.wfile.write(b'* OK ' + imaplib._MAXLINE * b'x' + b'\r\n') with self.reaped_server(TooLongHandler) as server: self.assertRaises(imaplib.IMAP4.error, self.imap_class, *server.server_address) @reap_threads def test_truncated_large_literal(self): size = 0 class BadHandler(SimpleIMAPHandler): def handle(self): self._send_textline('* OK {%d}' % size) self._send_textline('IMAP4rev1') for exponent in range(15, 64): size = 1 << exponent with self.subTest(f"size=2e{size}"): with self.reaped_server(BadHandler) as server: with self.assertRaises(imaplib.IMAP4.abort): self.imap_class(*server.server_address) @reap_threads def test_simple_with_statement(self): # simplest call with self.reaped_server(SimpleIMAPHandler) as server: with self.imap_class(*server.server_address): pass @reap_threads def test_with_statement(self): with self.reaped_server(SimpleIMAPHandler) as server: with self.imap_class(*server.server_address) as imap: imap.login('user', 'pass') self.assertEqual(server.logged, 'user') self.assertIsNone(server.logged) @reap_threads def test_with_statement_logout(self): # what happens if already logout in the block? with self.reaped_server(SimpleIMAPHandler) as server: with self.imap_class(*server.server_address) as imap: imap.login('user', 'pass') self.assertEqual(server.logged, 'user') imap.logout() self.assertIsNone(server.logged) self.assertIsNone(server.logged) @unittest.skipUnless(ssl, "SSL not available") class ThreadedNetworkedTestsSSL(ThreadedNetworkedTests): server_class = SecureTCPServer imap_class = IMAP4_SSL @reap_threads def test_ssl_verified(self): ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) ssl_context.load_verify_locations(CAFILE) with self.assertRaisesRegex( ssl.CertificateError, "IP address mismatch, certificate is not valid for " "'127.0.0.1'"): with self.reaped_server(SimpleIMAPHandler) as server: client = self.imap_class(*server.server_address, ssl_context=ssl_context) client.shutdown() with self.reaped_server(SimpleIMAPHandler) as server: client = self.imap_class("localhost", server.server_address[1], ssl_context=ssl_context) client.shutdown() @unittest.skipUnless( support.is_resource_enabled('network'), 'network resource disabled') @unittest.skip('cyrus.andrew.cmu.edu blocks connections') class RemoteIMAPTest(unittest.TestCase): host = 'cyrus.andrew.cmu.edu' port = 143 username = 'anonymous' password = 'pass' imap_class = imaplib.IMAP4 def setUp(self): with socket_helper.transient_internet(self.host): self.server = self.imap_class(self.host, self.port) def tearDown(self): if self.server is not None: with socket_helper.transient_internet(self.host): self.server.logout() def test_logincapa(self): with socket_helper.transient_internet(self.host): for cap in self.server.capabilities: self.assertIsInstance(cap, str) self.assertIn('LOGINDISABLED', self.server.capabilities) self.assertIn('AUTH=ANONYMOUS', self.server.capabilities) rs = self.server.login(self.username, self.password) self.assertEqual(rs[0], 'OK') def test_logout(self): with socket_helper.transient_internet(self.host): rs = self.server.logout() self.server = None self.assertEqual(rs[0], 'BYE', rs) @unittest.skipUnless(ssl, "SSL not available") @unittest.skipUnless( support.is_resource_enabled('network'), 'network resource disabled') @unittest.skip('cyrus.andrew.cmu.edu blocks connections') class RemoteIMAP_STARTTLSTest(RemoteIMAPTest): def setUp(self): super().setUp() with socket_helper.transient_internet(self.host): rs = self.server.starttls() self.assertEqual(rs[0], 'OK') def test_logincapa(self): for cap in self.server.capabilities: self.assertIsInstance(cap, str) self.assertNotIn('LOGINDISABLED', self.server.capabilities) @unittest.skipUnless(ssl, "SSL not available") @unittest.skip('cyrus.andrew.cmu.edu blocks connections') class RemoteIMAP_SSLTest(RemoteIMAPTest): port = 993 imap_class = IMAP4_SSL def setUp(self): pass def tearDown(self): pass def create_ssl_context(self): ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) ssl_context.check_hostname = False ssl_context.verify_mode = ssl.CERT_NONE ssl_context.load_cert_chain(CERTFILE) return ssl_context def check_logincapa(self, server): try: for cap in server.capabilities: self.assertIsInstance(cap, str) self.assertNotIn('LOGINDISABLED', server.capabilities) self.assertIn('AUTH=PLAIN', server.capabilities) rs = server.login(self.username, self.password) self.assertEqual(rs[0], 'OK') finally: server.logout() def test_logincapa(self): with socket_helper.transient_internet(self.host): _server = self.imap_class(self.host, self.port) self.check_logincapa(_server) def test_logout(self): with socket_helper.transient_internet(self.host): _server = self.imap_class(self.host, self.port) rs = _server.logout() self.assertEqual(rs[0], 'BYE', rs) def test_ssl_context_certfile_exclusive(self): with socket_helper.transient_internet(self.host): self.assertRaises( ValueError, self.imap_class, self.host, self.port, certfile=CERTFILE, ssl_context=self.create_ssl_context()) def test_ssl_context_keyfile_exclusive(self): with socket_helper.transient_internet(self.host): self.assertRaises( ValueError, self.imap_class, self.host, self.port, keyfile=CERTFILE, ssl_context=self.create_ssl_context()) if __name__ == "__main__": unittest.main()