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
import functools import inspect import os import string import sys import tempfile import unittest from test.support import requires, import_module, verbose, SaveSignals # Optionally test curses module. This currently requires that the # 'curses' resource be given on the regrtest command line using the -u # option. If not available, nothing after this line will be executed. requires('curses') # If either of these don't exist, skip the tests. curses = import_module('curses') import_module('curses.ascii') import_module('curses.textpad') try: import curses.panel except ImportError: pass def requires_curses_func(name): return unittest.skipUnless(hasattr(curses, name), 'requires curses.%s' % name) def requires_curses_window_meth(name): def deco(test): @functools.wraps(test) def wrapped(self, *args, **kwargs): if not hasattr(self.stdscr, name): raise unittest.SkipTest('requires curses.window.%s' % name) test(self, *args, **kwargs) return wrapped return deco def requires_colors(test): @functools.wraps(test) def wrapped(self, *args, **kwargs): if not curses.has_colors(): self.skipTest('requires colors support') curses.start_color() test(self, *args, **kwargs) return wrapped term = os.environ.get('TERM') SHORT_MAX = 0x7fff # If newterm was supported we could use it instead of initscr and not exit @unittest.skipIf(not term or term == 'unknown', "$TERM=%r, calling initscr() may cause exit" % term) @unittest.skipIf(sys.platform == "cygwin", "cygwin's curses mostly just hangs") class TestCurses(unittest.TestCase): @classmethod def setUpClass(cls): if verbose: print(f'TERM={term}', file=sys.stderr, flush=True) # testing setupterm() inside initscr/endwin # causes terminal breakage stdout_fd = sys.__stdout__.fileno() curses.setupterm(fd=stdout_fd) def setUp(self): self.isatty = True self.output = sys.__stdout__ stdout_fd = sys.__stdout__.fileno() if not sys.__stdout__.isatty(): # initstr() unconditionally uses C stdout. # If it is redirected to file or pipe, try to attach it # to terminal. # First, save a copy of the file descriptor of stdout, so it # can be restored after finishing the test. dup_fd = os.dup(stdout_fd) self.addCleanup(os.close, dup_fd) self.addCleanup(os.dup2, dup_fd, stdout_fd) if sys.__stderr__.isatty(): # If stderr is connected to terminal, use it. tmp = sys.__stderr__ self.output = sys.__stderr__ else: try: # Try to open the terminal device. tmp = open('/dev/tty', 'wb', buffering=0) except OSError: # As a fallback, use regular file to write control codes. # Some functions (like savetty) will not work, but at # least the garbage control sequences will not be mixed # with the testing report. tmp = tempfile.TemporaryFile(mode='wb', buffering=0) self.isatty = False self.addCleanup(tmp.close) self.output = None os.dup2(tmp.fileno(), stdout_fd) self.save_signals = SaveSignals() self.save_signals.save() self.addCleanup(self.save_signals.restore) if verbose and self.output is not None: # just to make the test output a little more readable sys.stderr.flush() sys.stdout.flush() print(file=self.output, flush=True) self.stdscr = curses.initscr() if self.isatty: curses.savetty() self.addCleanup(curses.endwin) self.addCleanup(curses.resetty) self.stdscr.erase() @requires_curses_func('filter') def test_filter(self): # TODO: Should be called before initscr() or newterm() are called. # TODO: nofilter() curses.filter() @requires_curses_func('use_env') def test_use_env(self): # TODO: Should be called before initscr() or newterm() are called. # TODO: use_tioctl() curses.use_env(False) curses.use_env(True) def test_create_windows(self): win = curses.newwin(5, 10) self.assertEqual(win.getbegyx(), (0, 0)) self.assertEqual(win.getparyx(), (-1, -1)) self.assertEqual(win.getmaxyx(), (5, 10)) win = curses.newwin(10, 15, 2, 5) self.assertEqual(win.getbegyx(), (2, 5)) self.assertEqual(win.getparyx(), (-1, -1)) self.assertEqual(win.getmaxyx(), (10, 15)) win2 = win.subwin(3, 7) self.assertEqual(win2.getbegyx(), (3, 7)) self.assertEqual(win2.getparyx(), (1, 2)) self.assertEqual(win2.getmaxyx(), (9, 13)) win2 = win.subwin(5, 10, 3, 7) self.assertEqual(win2.getbegyx(), (3, 7)) self.assertEqual(win2.getparyx(), (1, 2)) self.assertEqual(win2.getmaxyx(), (5, 10)) win3 = win.derwin(2, 3) self.assertEqual(win3.getbegyx(), (4, 8)) self.assertEqual(win3.getparyx(), (2, 3)) self.assertEqual(win3.getmaxyx(), (8, 12)) win3 = win.derwin(6, 11, 2, 3) self.assertEqual(win3.getbegyx(), (4, 8)) self.assertEqual(win3.getparyx(), (2, 3)) self.assertEqual(win3.getmaxyx(), (6, 11)) win.mvwin(0, 1) self.assertEqual(win.getbegyx(), (0, 1)) self.assertEqual(win.getparyx(), (-1, -1)) self.assertEqual(win.getmaxyx(), (10, 15)) self.assertEqual(win2.getbegyx(), (3, 7)) self.assertEqual(win2.getparyx(), (1, 2)) self.assertEqual(win2.getmaxyx(), (5, 10)) self.assertEqual(win3.getbegyx(), (4, 8)) self.assertEqual(win3.getparyx(), (2, 3)) self.assertEqual(win3.getmaxyx(), (6, 11)) win2.mvderwin(2, 1) self.assertEqual(win2.getbegyx(), (3, 7)) self.assertEqual(win2.getparyx(), (2, 1)) self.assertEqual(win2.getmaxyx(), (5, 10)) win3.mvderwin(2, 1) self.assertEqual(win3.getbegyx(), (4, 8)) self.assertEqual(win3.getparyx(), (2, 1)) self.assertEqual(win3.getmaxyx(), (6, 11)) def test_move_cursor(self): stdscr = self.stdscr win = stdscr.subwin(10, 15, 2, 5) stdscr.move(1, 2) win.move(2, 4) self.assertEqual(stdscr.getyx(), (1, 2)) self.assertEqual(win.getyx(), (2, 4)) win.cursyncup() self.assertEqual(stdscr.getyx(), (4, 9)) def test_refresh_control(self): stdscr = self.stdscr # touchwin()/untouchwin()/is_wintouched() stdscr.refresh() self.assertIs(stdscr.is_wintouched(), False) stdscr.touchwin() self.assertIs(stdscr.is_wintouched(), True) stdscr.refresh() self.assertIs(stdscr.is_wintouched(), False) stdscr.touchwin() self.assertIs(stdscr.is_wintouched(), True) stdscr.untouchwin() self.assertIs(stdscr.is_wintouched(), False) # touchline()/untouchline()/is_linetouched() stdscr.touchline(5, 2) self.assertIs(stdscr.is_linetouched(5), True) self.assertIs(stdscr.is_linetouched(6), True) self.assertIs(stdscr.is_wintouched(), True) stdscr.touchline(5, 1, False) self.assertIs(stdscr.is_linetouched(5), False) # syncup() win = stdscr.subwin(10, 15, 2, 5) win2 = win.subwin(5, 10, 3, 7) win2.touchwin() stdscr.untouchwin() win2.syncup() self.assertIs(win.is_wintouched(), True) self.assertIs(stdscr.is_wintouched(), True) # syncdown() stdscr.touchwin() win.untouchwin() win2.untouchwin() win2.syncdown() self.assertIs(win2.is_wintouched(), True) # syncok() if hasattr(stdscr, 'syncok') and not sys.platform.startswith("sunos"): win.untouchwin() stdscr.untouchwin() for syncok in [False, True]: win2.syncok(syncok) win2.addch('a') self.assertIs(win.is_wintouched(), syncok) self.assertIs(stdscr.is_wintouched(), syncok) def test_output_character(self): stdscr = self.stdscr encoding = stdscr.encoding # addch() stdscr.refresh() stdscr.move(0, 0) stdscr.addch('A') stdscr.addch(b'A') stdscr.addch(65) c = '\u20ac' try: stdscr.addch(c) except UnicodeEncodeError: self.assertRaises(UnicodeEncodeError, c.encode, encoding) except OverflowError: encoded = c.encode(encoding) self.assertNotEqual(len(encoded), 1, repr(encoded)) stdscr.addch('A', curses.A_BOLD) stdscr.addch(1, 2, 'A') stdscr.addch(2, 3, 'A', curses.A_BOLD) self.assertIs(stdscr.is_wintouched(), True) # echochar() stdscr.refresh() stdscr.move(0, 0) stdscr.echochar('A') stdscr.echochar(b'A') stdscr.echochar(65) with self.assertRaises((UnicodeEncodeError, OverflowError)): # Unicode is not fully supported yet, but at least it does # not crash. # It is supposed to fail because either the character is # not encodable with the current encoding, or it is encoded to # a multibyte sequence. stdscr.echochar('\u0114') stdscr.echochar('A', curses.A_BOLD) self.assertIs(stdscr.is_wintouched(), False) def test_output_string(self): stdscr = self.stdscr encoding = stdscr.encoding # addstr()/insstr() for func in [stdscr.addstr, stdscr.insstr]: with self.subTest(func.__qualname__): stdscr.move(0, 0) func('abcd') func(b'abcd') s = 'àßçđ' try: func(s) except UnicodeEncodeError: self.assertRaises(UnicodeEncodeError, s.encode, encoding) func('abcd', curses.A_BOLD) func(1, 2, 'abcd') func(2, 3, 'abcd', curses.A_BOLD) # addnstr()/insnstr() for func in [stdscr.addnstr, stdscr.insnstr]: with self.subTest(func.__qualname__): stdscr.move(0, 0) func('1234', 3) func(b'1234', 3) s = '\u0661\u0662\u0663\u0664' try: func(s, 3) except UnicodeEncodeError: self.assertRaises(UnicodeEncodeError, s.encode, encoding) func('1234', 5) func('1234', 3, curses.A_BOLD) func(1, 2, '1234', 3) func(2, 3, '1234', 3, curses.A_BOLD) def test_output_string_embedded_null_chars(self): # reject embedded null bytes and characters stdscr = self.stdscr for arg in ['a\0', b'a\0']: with self.subTest(arg=arg): self.assertRaises(ValueError, stdscr.addstr, arg) self.assertRaises(ValueError, stdscr.addnstr, arg, 1) self.assertRaises(ValueError, stdscr.insstr, arg) self.assertRaises(ValueError, stdscr.insnstr, arg, 1) def test_read_from_window(self): stdscr = self.stdscr stdscr.addstr(0, 1, 'ABCD', curses.A_BOLD) # inch() stdscr.move(0, 1) self.assertEqual(stdscr.inch(), 65 | curses.A_BOLD) self.assertEqual(stdscr.inch(0, 3), 67 | curses.A_BOLD) stdscr.move(0, 0) # instr() self.assertEqual(stdscr.instr()[:6], b' ABCD ') self.assertEqual(stdscr.instr(3)[:6], b' AB') self.assertEqual(stdscr.instr(0, 2)[:4], b'BCD ') self.assertEqual(stdscr.instr(0, 2, 4), b'BCD ') self.assertRaises(ValueError, stdscr.instr, -2) self.assertRaises(ValueError, stdscr.instr, 0, 2, -2) def test_getch(self): win = curses.newwin(5, 12, 5, 2) # TODO: Test with real input by writing to master fd. for c in 'spam\n'[::-1]: curses.ungetch(c) self.assertEqual(win.getch(3, 1), b's'[0]) self.assertEqual(win.getyx(), (3, 1)) self.assertEqual(win.getch(3, 4), b'p'[0]) self.assertEqual(win.getyx(), (3, 4)) self.assertEqual(win.getch(), b'a'[0]) self.assertEqual(win.getyx(), (3, 4)) self.assertEqual(win.getch(), b'm'[0]) self.assertEqual(win.getch(), b'\n'[0]) def test_getstr(self): win = curses.newwin(5, 12, 5, 2) curses.echo() self.addCleanup(curses.noecho) self.assertRaises(ValueError, win.getstr, -400) self.assertRaises(ValueError, win.getstr, 2, 3, -400) # TODO: Test with real input by writing to master fd. for c in 'Lorem\nipsum\ndolor\nsit\namet\n'[::-1]: curses.ungetch(c) self.assertEqual(win.getstr(3, 1, 2), b'Lo') self.assertEqual(win.instr(3, 0), b' Lo ') self.assertEqual(win.getstr(3, 5, 10), b'ipsum') self.assertEqual(win.instr(3, 0), b' Lo ipsum ') self.assertEqual(win.getstr(1, 5), b'dolor') self.assertEqual(win.instr(1, 0), b' dolor ') self.assertEqual(win.getstr(2), b'si') self.assertEqual(win.instr(1, 0), b'si dolor ') self.assertEqual(win.getstr(), b'amet') self.assertEqual(win.instr(1, 0), b'amet dolor ') def test_clear(self): win = curses.newwin(5, 15, 5, 2) lorem_ipsum(win) win.move(0, 8) win.clrtoeol() self.assertEqual(win.instr(0, 0).rstrip(), b'Lorem ip') self.assertEqual(win.instr(1, 0).rstrip(), b'dolor sit amet,') win.move(0, 3) win.clrtobot() self.assertEqual(win.instr(0, 0).rstrip(), b'Lor') self.assertEqual(win.instr(1, 0).rstrip(), b'') for func in [win.erase, win.clear]: lorem_ipsum(win) func() self.assertEqual(win.instr(0, 0).rstrip(), b'') self.assertEqual(win.instr(1, 0).rstrip(), b'') def test_insert_delete(self): win = curses.newwin(5, 15, 5, 2) lorem_ipsum(win) win.move(0, 2) win.delch() self.assertEqual(win.instr(0, 0), b'Loem ipsum ') win.delch(0, 7) self.assertEqual(win.instr(0, 0), b'Loem ipum ') win.move(1, 5) win.deleteln() self.assertEqual(win.instr(0, 0), b'Loem ipum ') self.assertEqual(win.instr(1, 0), b'consectetur ') self.assertEqual(win.instr(2, 0), b'adipiscing elit') self.assertEqual(win.instr(3, 0), b'sed do eiusmod ') self.assertEqual(win.instr(4, 0), b' ') win.move(1, 5) win.insertln() self.assertEqual(win.instr(0, 0), b'Loem ipum ') self.assertEqual(win.instr(1, 0), b' ') self.assertEqual(win.instr(2, 0), b'consectetur ') win.clear() lorem_ipsum(win) win.move(1, 5) win.insdelln(2) self.assertEqual(win.instr(0, 0), b'Lorem ipsum ') self.assertEqual(win.instr(1, 0), b' ') self.assertEqual(win.instr(2, 0), b' ') self.assertEqual(win.instr(3, 0), b'dolor sit amet,') win.clear() lorem_ipsum(win) win.move(1, 5) win.insdelln(-2) self.assertEqual(win.instr(0, 0), b'Lorem ipsum ') self.assertEqual(win.instr(1, 0), b'adipiscing elit') self.assertEqual(win.instr(2, 0), b'sed do eiusmod ') self.assertEqual(win.instr(3, 0), b' ') def test_scroll(self): win = curses.newwin(5, 15, 5, 2) lorem_ipsum(win) win.scrollok(True) win.scroll() self.assertEqual(win.instr(0, 0), b'dolor sit amet,') win.scroll(2) self.assertEqual(win.instr(0, 0), b'adipiscing elit') win.scroll(-3) self.assertEqual(win.instr(0, 0), b' ') self.assertEqual(win.instr(2, 0), b' ') self.assertEqual(win.instr(3, 0), b'adipiscing elit') win.scrollok(False) def test_attributes(self): # TODO: attr_get(), attr_set(), ... win = curses.newwin(5, 15, 5, 2) win.attron(curses.A_BOLD) win.attroff(curses.A_BOLD) win.attrset(curses.A_BOLD) win.standout() win.standend() @requires_curses_window_meth('chgat') def test_chgat(self): win = curses.newwin(5, 15, 5, 2) win.addstr(2, 0, 'Lorem ipsum') win.addstr(3, 0, 'dolor sit amet') win.move(2, 8) win.chgat(curses.A_BLINK) self.assertEqual(win.inch(2, 7), b'p'[0]) self.assertEqual(win.inch(2, 8), b's'[0] | curses.A_BLINK) self.assertEqual(win.inch(2, 14), b' '[0] | curses.A_BLINK) win.move(2, 1) win.chgat(3, curses.A_BOLD) self.assertEqual(win.inch(2, 0), b'L'[0]) self.assertEqual(win.inch(2, 1), b'o'[0] | curses.A_BOLD) self.assertEqual(win.inch(2, 3), b'e'[0] | curses.A_BOLD) self.assertEqual(win.inch(2, 4), b'm'[0]) win.chgat(3, 2, curses.A_UNDERLINE) self.assertEqual(win.inch(3, 1), b'o'[0]) self.assertEqual(win.inch(3, 2), b'l'[0] | curses.A_UNDERLINE) self.assertEqual(win.inch(3, 14), b' '[0] | curses.A_UNDERLINE) win.chgat(3, 4, 7, curses.A_BLINK) self.assertEqual(win.inch(3, 3), b'o'[0] | curses.A_UNDERLINE) self.assertEqual(win.inch(3, 4), b'r'[0] | curses.A_BLINK) self.assertEqual(win.inch(3, 10), b'a'[0] | curses.A_BLINK) self.assertEqual(win.inch(3, 11), b'm'[0] | curses.A_UNDERLINE) self.assertEqual(win.inch(3, 14), b' '[0] | curses.A_UNDERLINE) def test_background(self): win = curses.newwin(5, 15, 5, 2) win.addstr(0, 0, 'Lorem ipsum') self.assertIn(win.getbkgd(), (0, 32)) # bkgdset() win.bkgdset('_') self.assertEqual(win.getbkgd(), b'_'[0]) win.bkgdset(b'#') self.assertEqual(win.getbkgd(), b'#'[0]) win.bkgdset(65) self.assertEqual(win.getbkgd(), 65) win.bkgdset(0) self.assertEqual(win.getbkgd(), 32) win.bkgdset('#', curses.A_REVERSE) self.assertEqual(win.getbkgd(), b'#'[0] | curses.A_REVERSE) self.assertEqual(win.inch(0, 0), b'L'[0]) self.assertEqual(win.inch(0, 5), b' '[0]) win.bkgdset(0) # bkgd() win.bkgd('_') self.assertEqual(win.getbkgd(), b'_'[0]) self.assertEqual(win.inch(0, 0), b'L'[0]) self.assertEqual(win.inch(0, 5), b'_'[0]) win.bkgd('#', curses.A_REVERSE) self.assertEqual(win.getbkgd(), b'#'[0] | curses.A_REVERSE) self.assertEqual(win.inch(0, 0), b'L'[0] | curses.A_REVERSE) self.assertEqual(win.inch(0, 5), b'#'[0] | curses.A_REVERSE) def test_overlay(self): srcwin = curses.newwin(5, 18, 3, 4) lorem_ipsum(srcwin) dstwin = curses.newwin(7, 17, 5, 7) for i in range(6): dstwin.addstr(i, 0, '_'*17) srcwin.overlay(dstwin) self.assertEqual(dstwin.instr(0, 0), b'sectetur_________') self.assertEqual(dstwin.instr(1, 0), b'piscing_elit,____') self.assertEqual(dstwin.instr(2, 0), b'_do_eiusmod______') self.assertEqual(dstwin.instr(3, 0), b'_________________') srcwin.overwrite(dstwin) self.assertEqual(dstwin.instr(0, 0), b'sectetur __') self.assertEqual(dstwin.instr(1, 0), b'piscing elit, __') self.assertEqual(dstwin.instr(2, 0), b' do eiusmod __') self.assertEqual(dstwin.instr(3, 0), b'_________________') srcwin.overlay(dstwin, 1, 4, 3, 2, 4, 11) self.assertEqual(dstwin.instr(3, 0), b'__r_sit_amet_____') self.assertEqual(dstwin.instr(4, 0), b'__ectetur________') self.assertEqual(dstwin.instr(5, 0), b'_________________') srcwin.overwrite(dstwin, 1, 4, 3, 2, 4, 11) self.assertEqual(dstwin.instr(3, 0), b'__r sit amet_____') self.assertEqual(dstwin.instr(4, 0), b'__ectetur _____') self.assertEqual(dstwin.instr(5, 0), b'_________________') def test_refresh(self): win = curses.newwin(5, 15, 2, 5) win.noutrefresh() win.redrawln(1, 2) win.redrawwin() win.refresh() curses.doupdate() @requires_curses_window_meth('resize') def test_resize(self): win = curses.newwin(5, 15, 2, 5) win.resize(4, 20) self.assertEqual(win.getmaxyx(), (4, 20)) win.resize(5, 15) self.assertEqual(win.getmaxyx(), (5, 15)) @requires_curses_window_meth('enclose') def test_enclose(self): win = curses.newwin(5, 15, 2, 5) # TODO: Return bool instead of 1/0 self.assertTrue(win.enclose(2, 5)) self.assertFalse(win.enclose(1, 5)) self.assertFalse(win.enclose(2, 4)) self.assertTrue(win.enclose(6, 19)) self.assertFalse(win.enclose(7, 19)) self.assertFalse(win.enclose(6, 20)) def test_putwin(self): win = curses.newwin(5, 12, 1, 2) win.addstr(2, 1, 'Lorem ipsum') with tempfile.TemporaryFile() as f: win.putwin(f) del win f.seek(0) win = curses.getwin(f) self.assertEqual(win.getbegyx(), (1, 2)) self.assertEqual(win.getmaxyx(), (5, 12)) self.assertEqual(win.instr(2, 0), b' Lorem ipsum') def test_borders_and_lines(self): win = curses.newwin(5, 10, 5, 2) win.border('|', '!', '-', '_', '+', '\\', '#', '/') self.assertEqual(win.instr(0, 0), b'+--------\\') self.assertEqual(win.instr(1, 0), b'| !') self.assertEqual(win.instr(4, 0), b'#________/') win.border(b'|', b'!', b'-', b'_', b'+', b'\\', b'#', b'/') win.border(65, 66, 67, 68, 69, 70, 71, 72) self.assertRaises(TypeError, win.border, 65, 66, 67, 68, 69, [], 71, 72) self.assertRaises(TypeError, win.border, 65, 66, 67, 68, 69, 70, 71, 72, 73) self.assertRaises(TypeError, win.border, 65, 66, 67, 68, 69, 70, 71, 72, 73) win.border(65, 66, 67, 68, 69, 70, 71) win.border(65, 66, 67, 68, 69, 70) win.border(65, 66, 67, 68, 69) win.border(65, 66, 67, 68) win.border(65, 66, 67) win.border(65, 66) win.border(65) win.border() win.box(':', '~') self.assertEqual(win.instr(0, 1, 8), b'~~~~~~~~') self.assertEqual(win.instr(1, 0), b': :') self.assertEqual(win.instr(4, 1, 8), b'~~~~~~~~') win.box(b':', b'~') win.box(65, 67) self.assertRaises(TypeError, win.box, 65, 66, 67) self.assertRaises(TypeError, win.box, 65) win.box() win.move(1, 2) win.hline('-', 5) self.assertEqual(win.instr(1, 1, 7), b' ----- ') win.hline(b'-', 5) win.hline(45, 5) win.hline('-', 5, curses.A_BOLD) win.hline(1, 1, '-', 5) win.hline(1, 1, '-', 5, curses.A_BOLD) win.move(1, 2) win.vline('a', 3) win.vline(b'a', 3) win.vline(97, 3) win.vline('a', 3, curses.A_STANDOUT) win.vline(1, 1, 'a', 3) win.vline(1, 1, ';', 2, curses.A_STANDOUT) self.assertEqual(win.inch(1, 1), b';'[0] | curses.A_STANDOUT) self.assertEqual(win.inch(2, 1), b';'[0] | curses.A_STANDOUT) self.assertEqual(win.inch(3, 1), b'a'[0]) def test_unctrl(self): # TODO: wunctrl() self.assertEqual(curses.unctrl(b'A'), b'A') self.assertEqual(curses.unctrl('A'), b'A') self.assertEqual(curses.unctrl(65), b'A') self.assertEqual(curses.unctrl(b'\n'), b'^J') self.assertEqual(curses.unctrl('\n'), b'^J') self.assertEqual(curses.unctrl(10), b'^J') self.assertRaises(TypeError, curses.unctrl, b'') self.assertRaises(TypeError, curses.unctrl, b'AB') self.assertRaises(TypeError, curses.unctrl, '') self.assertRaises(TypeError, curses.unctrl, 'AB') self.assertRaises(OverflowError, curses.unctrl, 2**64) def test_endwin(self): if not self.isatty: self.skipTest('requires terminal') self.assertIs(curses.isendwin(), False) curses.endwin() self.assertIs(curses.isendwin(), True) curses.doupdate() self.assertIs(curses.isendwin(), False) def test_terminfo(self): self.assertIsInstance(curses.tigetflag('hc'), int) self.assertEqual(curses.tigetflag('cols'), -1) self.assertEqual(curses.tigetflag('cr'), -1) self.assertIsInstance(curses.tigetnum('cols'), int) self.assertEqual(curses.tigetnum('hc'), -2) self.assertEqual(curses.tigetnum('cr'), -2) self.assertIsInstance(curses.tigetstr('cr'), (bytes, type(None))) self.assertIsNone(curses.tigetstr('hc')) self.assertIsNone(curses.tigetstr('cols')) cud = curses.tigetstr('cud') if cud is not None: # See issue10570. self.assertIsInstance(cud, bytes) curses.tparm(cud, 2) cud_2 = curses.tparm(cud, 2) self.assertIsInstance(cud_2, bytes) curses.putp(cud_2) curses.putp(b'abc\n') def test_misc_module_funcs(self): curses.delay_output(1) curses.flushinp() curses.doupdate() self.assertIs(curses.isendwin(), False) curses.napms(100) curses.newpad(50, 50) def test_env_queries(self): # TODO: term_attrs(), erasewchar(), killwchar() self.assertIsInstance(curses.termname(), bytes) self.assertIsInstance(curses.longname(), bytes) self.assertIsInstance(curses.baudrate(), int) self.assertIsInstance(curses.has_ic(), bool) self.assertIsInstance(curses.has_il(), bool) self.assertIsInstance(curses.termattrs(), int) c = curses.killchar() self.assertIsInstance(c, bytes) self.assertEqual(len(c), 1) c = curses.erasechar() self.assertIsInstance(c, bytes) self.assertEqual(len(c), 1) def test_output_options(self): stdscr = self.stdscr stdscr.clearok(True) stdscr.clearok(False) stdscr.idcok(True) stdscr.idcok(False) stdscr.idlok(False) stdscr.idlok(True) if hasattr(stdscr, 'immedok'): stdscr.immedok(True) stdscr.immedok(False) stdscr.leaveok(True) stdscr.leaveok(False) stdscr.scrollok(True) stdscr.scrollok(False) stdscr.setscrreg(5, 10) curses.nonl() curses.nl(True) curses.nl(False) curses.nl() def test_input_options(self): stdscr = self.stdscr if self.isatty: curses.nocbreak() curses.cbreak() curses.cbreak(False) curses.cbreak(True) curses.intrflush(True) curses.intrflush(False) curses.raw() curses.raw(False) curses.raw(True) curses.noraw() curses.noecho() curses.echo() curses.echo(False) curses.echo(True) curses.halfdelay(255) curses.halfdelay(1) stdscr.keypad(True) stdscr.keypad(False) curses.meta(True) curses.meta(False) stdscr.nodelay(True) stdscr.nodelay(False) curses.noqiflush() curses.qiflush(True) curses.qiflush(False) curses.qiflush() stdscr.notimeout(True) stdscr.notimeout(False) stdscr.timeout(-1) stdscr.timeout(0) stdscr.timeout(5) @requires_curses_func('typeahead') def test_typeahead(self): curses.typeahead(sys.__stdin__.fileno()) curses.typeahead(-1) def test_prog_mode(self): if not self.isatty: self.skipTest('requires terminal') curses.def_prog_mode() curses.reset_prog_mode() def test_beep(self): if (curses.tigetstr("bel") is not None or curses.tigetstr("flash") is not None): curses.beep() else: try: curses.beep() except curses.error: self.skipTest('beep() failed') def test_flash(self): if (curses.tigetstr("bel") is not None or curses.tigetstr("flash") is not None): curses.flash() else: try: curses.flash() except curses.error: self.skipTest('flash() failed') def test_curs_set(self): for vis, cap in [(0, 'civis'), (2, 'cvvis'), (1, 'cnorm')]: if curses.tigetstr(cap) is not None: curses.curs_set(vis) else: try: curses.curs_set(vis) except curses.error: pass @requires_curses_func('get_escdelay') def test_escdelay(self): escdelay = curses.get_escdelay() self.assertIsInstance(escdelay, int) curses.set_escdelay(25) self.assertEqual(curses.get_escdelay(), 25) curses.set_escdelay(escdelay) @requires_curses_func('get_tabsize') def test_tabsize(self): tabsize = curses.get_tabsize() self.assertIsInstance(tabsize, int) curses.set_tabsize(4) self.assertEqual(curses.get_tabsize(), 4) curses.set_tabsize(tabsize) @requires_curses_func('getsyx') def test_getsyx(self): y, x = curses.getsyx() self.assertIsInstance(y, int) self.assertIsInstance(x, int) curses.setsyx(4, 5) self.assertEqual(curses.getsyx(), (4, 5)) def bad_colors(self): return (-2**31 - 1, 2**31, -2**63 - 1, 2**63, 2**64) def bad_pairs(self): return (-2**31 - 1, 2**31, -2**63 - 1, 2**63, 2**64) def test_has_colors(self): self.assertIsInstance(curses.has_colors(), bool) self.assertIsInstance(curses.can_change_color(), bool) def test_start_color(self): if not curses.has_colors(): self.skipTest('requires colors support') curses.start_color() if verbose: print(f'COLORS = {curses.COLORS}', file=sys.stderr) print(f'COLOR_PAIRS = {curses.COLOR_PAIRS}', file=sys.stderr) @requires_colors def test_color_content(self): self.assertEqual(curses.color_content(curses.COLOR_BLACK), (0, 0, 0)) curses.color_content(0) maxcolor = min(curses.COLORS - 1, SHORT_MAX) curses.color_content(maxcolor) for color in self.bad_colors(): self.assertRaises(OverflowError, curses.color_content, color) if curses.COLORS <= SHORT_MAX: self.assertRaises(curses.error, curses.color_content, curses.COLORS) self.assertRaises(curses.error, curses.color_content, -1) @requires_colors def test_init_color(self): if not curses.can_change_color(): self.skipTest('cannot change color') old = curses.color_content(0) try: curses.init_color(0, *old) except curses.error: self.skipTest('cannot change color (init_color() failed)') self.addCleanup(curses.init_color, 0, *old) curses.init_color(0, 0, 0, 0) self.assertEqual(curses.color_content(0), (0, 0, 0)) curses.init_color(0, 1000, 1000, 1000) self.assertEqual(curses.color_content(0), (1000, 1000, 1000)) maxcolor = min(curses.COLORS - 1, SHORT_MAX) old = curses.color_content(maxcolor) curses.init_color(maxcolor, *old) self.addCleanup(curses.init_color, maxcolor, *old) curses.init_color(maxcolor, 0, 500, 1000) self.assertEqual(curses.color_content(maxcolor), (0, 500, 1000)) for color in self.bad_colors(): self.assertRaises(OverflowError, curses.init_color, color, 0, 0, 0) if curses.COLORS <= SHORT_MAX: self.assertRaises(curses.error, curses.init_color, curses.COLORS, 0, 0, 0) self.assertRaises(curses.error, curses.init_color, -1, 0, 0, 0) for comp in (-1, 1001): self.assertRaises(curses.error, curses.init_color, 0, comp, 0, 0) self.assertRaises(curses.error, curses.init_color, 0, 0, comp, 0) self.assertRaises(curses.error, curses.init_color, 0, 0, 0, comp) def get_pair_limit(self): return min(curses.COLOR_PAIRS, SHORT_MAX) @requires_colors def test_pair_content(self): if not hasattr(curses, 'use_default_colors'): self.assertEqual(curses.pair_content(0), (curses.COLOR_WHITE, curses.COLOR_BLACK)) curses.pair_content(0) maxpair = self.get_pair_limit() - 1 if maxpair > 0: curses.pair_content(maxpair) for pair in self.bad_pairs(): self.assertRaises(OverflowError, curses.pair_content, pair) self.assertRaises(curses.error, curses.pair_content, -1) @requires_colors def test_init_pair(self): old = curses.pair_content(1) curses.init_pair(1, *old) self.addCleanup(curses.init_pair, 1, *old) curses.init_pair(1, 0, 0) self.assertEqual(curses.pair_content(1), (0, 0)) maxcolor = min(curses.COLORS - 1, SHORT_MAX) curses.init_pair(1, maxcolor, 0) self.assertEqual(curses.pair_content(1), (maxcolor, 0)) curses.init_pair(1, 0, maxcolor) self.assertEqual(curses.pair_content(1), (0, maxcolor)) maxpair = self.get_pair_limit() - 1 if maxpair > 1: curses.init_pair(maxpair, 0, 0) self.assertEqual(curses.pair_content(maxpair), (0, 0)) for pair in self.bad_pairs(): self.assertRaises(OverflowError, curses.init_pair, pair, 0, 0) self.assertRaises(curses.error, curses.init_pair, -1, 0, 0) for color in self.bad_colors(): self.assertRaises(OverflowError, curses.init_pair, 1, color, 0) self.assertRaises(OverflowError, curses.init_pair, 1, 0, color) if curses.COLORS <= SHORT_MAX: self.assertRaises(curses.error, curses.init_pair, 1, curses.COLORS, 0) self.assertRaises(curses.error, curses.init_pair, 1, 0, curses.COLORS) @requires_colors def test_color_attrs(self): for pair in 0, 1, 255: attr = curses.color_pair(pair) self.assertEqual(curses.pair_number(attr), pair, attr) self.assertEqual(curses.pair_number(attr | curses.A_BOLD), pair) self.assertEqual(curses.color_pair(0), 0) self.assertEqual(curses.pair_number(0), 0) @requires_curses_func('use_default_colors') @requires_colors def test_use_default_colors(self): old = curses.pair_content(0) try: curses.use_default_colors() except curses.error: self.skipTest('cannot change color (use_default_colors() failed)') self.assertEqual(curses.pair_content(0), (-1, -1)) self.assertIn(old, [(curses.COLOR_WHITE, curses.COLOR_BLACK), (-1, -1), (0, 0)]) def test_keyname(self): # TODO: key_name() self.assertEqual(curses.keyname(65), b'A') self.assertEqual(curses.keyname(13), b'^M') self.assertEqual(curses.keyname(127), b'^?') self.assertEqual(curses.keyname(0), b'^@') self.assertRaises(ValueError, curses.keyname, -1) self.assertIsInstance(curses.keyname(256), bytes) @requires_curses_func('has_key') def test_has_key(self): curses.has_key(13) @requires_curses_func('getmouse') def test_getmouse(self): (availmask, oldmask) = curses.mousemask(curses.BUTTON1_PRESSED) if availmask == 0: self.skipTest('mouse stuff not available') curses.mouseinterval(10) # just verify these don't cause errors curses.ungetmouse(0, 0, 0, 0, curses.BUTTON1_PRESSED) m = curses.getmouse() @requires_curses_func('panel') def test_userptr_without_set(self): w = curses.newwin(10, 10) p = curses.panel.new_panel(w) # try to access userptr() before calling set_userptr() -- segfaults with self.assertRaises(curses.panel.error, msg='userptr should fail since not set'): p.userptr() @requires_curses_func('panel') def test_userptr_memory_leak(self): w = curses.newwin(10, 10) p = curses.panel.new_panel(w) obj = object() nrefs = sys.getrefcount(obj) for i in range(100): p.set_userptr(obj) p.set_userptr(None) self.assertEqual(sys.getrefcount(obj), nrefs, "set_userptr leaked references") @requires_curses_func('panel') def test_userptr_segfault(self): w = curses.newwin(10, 10) panel = curses.panel.new_panel(w) class A: def __del__(self): panel.set_userptr(None) panel.set_userptr(A()) panel.set_userptr(None) @requires_curses_func('panel') def test_new_curses_panel(self): w = curses.newwin(10, 10) panel = curses.panel.new_panel(w) self.assertRaises(TypeError, type(panel)) @requires_curses_func('is_term_resized') def test_is_term_resized(self): lines, cols = curses.LINES, curses.COLS self.assertIs(curses.is_term_resized(lines, cols), False) self.assertIs(curses.is_term_resized(lines-1, cols-1), True) @requires_curses_func('resize_term') def test_resize_term(self): curses.update_lines_cols() lines, cols = curses.LINES, curses.COLS new_lines = lines - 1 new_cols = cols + 1 curses.resize_term(new_lines, new_cols) self.assertEqual(curses.LINES, new_lines) self.assertEqual(curses.COLS, new_cols) curses.resize_term(lines, cols) self.assertEqual(curses.LINES, lines) self.assertEqual(curses.COLS, cols) @requires_curses_func('resizeterm') def test_resizeterm(self): curses.update_lines_cols() lines, cols = curses.LINES, curses.COLS new_lines = lines - 1 new_cols = cols + 1 curses.resizeterm(new_lines, new_cols) self.assertEqual(curses.LINES, new_lines) self.assertEqual(curses.COLS, new_cols) curses.resizeterm(lines, cols) self.assertEqual(curses.LINES, lines) self.assertEqual(curses.COLS, cols) def test_ungetch(self): curses.ungetch(b'A') self.assertEqual(self.stdscr.getkey(), 'A') curses.ungetch('B') self.assertEqual(self.stdscr.getkey(), 'B') curses.ungetch(67) self.assertEqual(self.stdscr.getkey(), 'C') def test_issue6243(self): curses.ungetch(1025) self.stdscr.getkey() @requires_curses_func('unget_wch') @unittest.skipIf(getattr(curses, 'ncurses_version', (99,)) < (5, 8), "unget_wch is broken in ncurses 5.7 and earlier") def test_unget_wch(self): stdscr = self.stdscr encoding = stdscr.encoding for ch in ('a', '\xe9', '\u20ac', '\U0010FFFF'): try: ch.encode(encoding) except UnicodeEncodeError: continue try: curses.unget_wch(ch) except Exception as err: self.fail("unget_wch(%a) failed with encoding %s: %s" % (ch, stdscr.encoding, err)) read = stdscr.get_wch() self.assertEqual(read, ch) code = ord(ch) curses.unget_wch(code) read = stdscr.get_wch() self.assertEqual(read, ch) def test_encoding(self): stdscr = self.stdscr import codecs encoding = stdscr.encoding codecs.lookup(encoding) with self.assertRaises(TypeError): stdscr.encoding = 10 stdscr.encoding = encoding with self.assertRaises(TypeError): del stdscr.encoding def test_issue21088(self): stdscr = self.stdscr # # http://bugs.python.org/issue21088 # # the bug: # when converting curses.window.addch to Argument Clinic # the first two parameters were switched. # if someday we can represent the signature of addch # we will need to rewrite this test. try: signature = inspect.signature(stdscr.addch) self.assertFalse(signature) except ValueError: # not generating a signature is fine. pass # So. No signature for addch. # But Argument Clinic gave us a human-readable equivalent # as the first line of the docstring. So we parse that, # and ensure that the parameters appear in the correct order. # Since this is parsing output from Argument Clinic, we can # be reasonably certain the generated parsing code will be # correct too. human_readable_signature = stdscr.addch.__doc__.split("\n")[0] self.assertIn("[y, x,]", human_readable_signature) @requires_curses_window_meth('resize') def test_issue13051(self): win = curses.newwin(5, 15, 2, 5) box = curses.textpad.Textbox(win, insert_mode=True) lines, cols = win.getmaxyx() win.resize(lines-2, cols-2) # this may cause infinite recursion, leading to a RuntimeError box._insert_printable_char('a') class MiscTests(unittest.TestCase): @requires_curses_func('update_lines_cols') def test_update_lines_cols(self): curses.update_lines_cols() lines, cols = curses.LINES, curses.COLS curses.LINES = curses.COLS = 0 curses.update_lines_cols() self.assertEqual(curses.LINES, lines) self.assertEqual(curses.COLS, cols) @requires_curses_func('ncurses_version') def test_ncurses_version(self): v = curses.ncurses_version if verbose: print(f'ncurses_version = {curses.ncurses_version}', flush=True) self.assertIsInstance(v[:], tuple) self.assertEqual(len(v), 3) self.assertIsInstance(v[0], int) self.assertIsInstance(v[1], int) self.assertIsInstance(v[2], int) self.assertIsInstance(v.major, int) self.assertIsInstance(v.minor, int) self.assertIsInstance(v.patch, int) self.assertEqual(v[0], v.major) self.assertEqual(v[1], v.minor) self.assertEqual(v[2], v.patch) self.assertGreaterEqual(v.major, 0) self.assertGreaterEqual(v.minor, 0) self.assertGreaterEqual(v.patch, 0) class TestAscii(unittest.TestCase): def test_controlnames(self): for name in curses.ascii.controlnames: self.assertTrue(hasattr(curses.ascii, name), name) def test_ctypes(self): def check(func, expected): with self.subTest(ch=c, func=func): self.assertEqual(func(i), expected) self.assertEqual(func(c), expected) for i in range(256): c = chr(i) b = bytes([i]) check(curses.ascii.isalnum, b.isalnum()) check(curses.ascii.isalpha, b.isalpha()) check(curses.ascii.isdigit, b.isdigit()) check(curses.ascii.islower, b.islower()) check(curses.ascii.isspace, b.isspace()) check(curses.ascii.isupper, b.isupper()) check(curses.ascii.isascii, i < 128) check(curses.ascii.ismeta, i >= 128) check(curses.ascii.isctrl, i < 32) check(curses.ascii.iscntrl, i < 32 or i == 127) check(curses.ascii.isblank, c in ' \t') check(curses.ascii.isgraph, 32 < i <= 126) check(curses.ascii.isprint, 32 <= i <= 126) check(curses.ascii.ispunct, c in string.punctuation) check(curses.ascii.isxdigit, c in string.hexdigits) for i in (-2, -1, 256, sys.maxunicode, sys.maxunicode+1): self.assertFalse(curses.ascii.isalnum(i)) self.assertFalse(curses.ascii.isalpha(i)) self.assertFalse(curses.ascii.isdigit(i)) self.assertFalse(curses.ascii.islower(i)) self.assertFalse(curses.ascii.isspace(i)) self.assertFalse(curses.ascii.isupper(i)) self.assertFalse(curses.ascii.isascii(i)) self.assertFalse(curses.ascii.isctrl(i)) self.assertFalse(curses.ascii.iscntrl(i)) self.assertFalse(curses.ascii.isblank(i)) self.assertFalse(curses.ascii.isgraph(i)) self.assertFalse(curses.ascii.isprint(i)) self.assertFalse(curses.ascii.ispunct(i)) self.assertFalse(curses.ascii.isxdigit(i)) self.assertFalse(curses.ascii.ismeta(-1)) def test_ascii(self): ascii = curses.ascii.ascii self.assertEqual(ascii('\xc1'), 'A') self.assertEqual(ascii('A'), 'A') self.assertEqual(ascii(ord('\xc1')), ord('A')) def test_ctrl(self): ctrl = curses.ascii.ctrl self.assertEqual(ctrl('J'), '\n') self.assertEqual(ctrl('\n'), '\n') self.assertEqual(ctrl('@'), '\0') self.assertEqual(ctrl(ord('J')), ord('\n')) def test_alt(self): alt = curses.ascii.alt self.assertEqual(alt('\n'), '\x8a') self.assertEqual(alt('A'), '\xc1') self.assertEqual(alt(ord('A')), 0xc1) def test_unctrl(self): unctrl = curses.ascii.unctrl self.assertEqual(unctrl('a'), 'a') self.assertEqual(unctrl('A'), 'A') self.assertEqual(unctrl(';'), ';') self.assertEqual(unctrl(' '), ' ') self.assertEqual(unctrl('\x7f'), '^?') self.assertEqual(unctrl('\n'), '^J') self.assertEqual(unctrl('\0'), '^@') self.assertEqual(unctrl(ord('A')), 'A') self.assertEqual(unctrl(ord('\n')), '^J') # Meta-bit characters self.assertEqual(unctrl('\x8a'), '!^J') self.assertEqual(unctrl('\xc1'), '!A') self.assertEqual(unctrl(ord('\x8a')), '!^J') self.assertEqual(unctrl(ord('\xc1')), '!A') def lorem_ipsum(win): text = [ 'Lorem ipsum', 'dolor sit amet,', 'consectetur', 'adipiscing elit,', 'sed do eiusmod', 'tempor incididunt', 'ut labore et', 'dolore magna', 'aliqua.', ] maxy, maxx = win.getmaxyx() for y, line in enumerate(text[:maxy]): win.addstr(y, 0, line[:maxx - (y == maxy - 1)]) if __name__ == '__main__': unittest.main()