-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update Python libraries and tests from CPython 3.12 #5104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
Modules:
Tests:
|
|
Hi, from this list, what is a good library and/or test to implement as a good first issue? |
@jkauerl Hi. In high chance, unpopular libraries are technically easy to update. But those are not that much fun. I'd like to encourage to try libraries you are already familiar with. Then understanding errors and bugs will be easier and enjoyable. |
|
|
Also the same for |
Doesn't look like test_binop.py changed. |
This should probably be re-targeted to 3.13 |
Thanks to everyone who participated in the 3.12 library support marathon for a year! |
Uh oh!
There was an error while loading. Please reload this page.
Though it will be sometimes blocked by rust side issues, don't worry!
Please just create PR about the broken test and and create issues related to the new bugs.
If you are new to updating cpython libraries, this guide will be useful:
https://github.com/RustPython/RustPython/wiki/How-to-update-test-files
When updating module Lib/X, please don't forget to also update Lib/test/test_X
A few libraries doesn't need to be updated because CPython also kept it same as previous version. In that case, please leave a comment to let us mark it as done. Thank you!
Tips
git checkout v3.12.0
from CPython repository.cargo run --features ssl -- -m test -v <test_name>
. e.g. If you changedtest_unicode.py
,cargo run --features ssl -- -m test -v test_unicode
--release
likecargo run --release --features ssl -- -m test -v test_unicode
List of libraries
__future__.py
Update os/posix/posixpath from CPython 3.12.2 #5257test_future_stmt
from __future__ import generator_stop
#4060?__hello__.py
unchanged__phello__
unchanged_compression.py
unchanged_markupbase.py
unchanged_osx_support.py
unchanged_threading_local.py
_weakrefset.py
abc.py
Update libraries and test files from CPython v3.12 #5134_collections_abc.py
_py_abc.py
aifc.py
removed in 3.13antigravity.py
unchangedargparse.py
Update libraries and test files from CPython v3.12 #5134ast.py
Update ast, test_ast from CPython 3.12.0 #5121asynchat.py
Update libraries and test files from CPython v3.12 #5134 removed in 3.13asyncio
Update Lib/asyncio from CPython v3.12.3 #3858_contextvars
_overlapped
for windowsasyncore.py
Update libraries and test files from CPython v3.12 #5134 removed in 3.13base64.py
Update libraries and test files from CPython v3.12 #5134bdb.py
Update libraries and test files from CPython v3.12 #5134bisect.py
Update libraries and test files from CPython v3.12 #5134bz2.py
Update libraries and test files from CPython v3.12 #5134calendar.py
Updatecalendar.py
andtest_calendar.py
from CPython v3.12 #5169cgi.py
removed in 3.13cgitb.py
UpdateLib/cgitb.py
to 3.12 #5197 removed in 3.13chunk.py
removed in 3.13cmd.py
unchangedcode.py
Update code.py and test_code.py from CPython v3.12 #5174test_code_module
is related testcodecs.py
Update codecs and test_codecs from cpython v3.12.4 #5372_pycodecs.py
codeop.py
Update test_opcodes.py, test_codeop.py and codeop.py from CPython v3.12 #5115collections
_collections.OrderedDict
type (a.k.a.collections.OrderedDict
) #3418colorsys.py
UpdateLib/colorsys.py
andLib/test/test_colorsys.py
to 3.12 #5198compileall.py
UpdateLib/compileall.py
andLib/test/test_compileall.py
#5199concurrent
configparser.py
Updateconfigparser.py
andtest_configparser.py
from CPython v3.12 #5172contextlib.py
contextvars.py
unchangedcontextvars
) #3188copy.py
Updatecopy.py
andtest_copy.py
from CPython v3.12 #5175copyreg.py
object.__getstate__ #5342 AddLib/test/test_copyreg.py
from 3.12 #5200__getstate__
csv.py
【Need Update csv.rs】Update csv.py and test_csv.py from CPython v3.12 #5176ctypes
dataclasses.py
Update dataclasses, inspect from CPython 3.12 #5377 pendingmatch
statement support.datetime.py
Update datetime from CPython v3.12.3 #5314_pydatetime.py
dbm
decimal.py
First step for Python 3.12 support #5078_pydecimal.py
- depending oncontextvars
difflib.py
dis.py
distutils
doctest.py
- depending on_io.IncrementalNewlineDecoder
email
encodings
Update glob/getopt/encodings #5253ensurepip
Update ensurepip to Python 3.12 #5108enum.py
First step for Python 3.12 support #5078filecmp.py
Remove dummy_os import and update filecmp from CPython 3.12.2 #5258fileinput.py
fnmatch.py
fractions.py
Update fraction from CPython 3.12.4 #5375ftplib.py
UpdateLib/ftplib.py
andLib/test/test_ftplib
to 3.12 #5196functools.py
First step for Python 3.12 support #5078gc.py
genericpath.py
getopt.py
Update glob/getopt/encodings #5253getpass.py
gettext.py
Update gettext.py and related test to 3.12 version #5287glob.py
Update glob/getopt/encodings #5253graphlib.py
unchangedgzip.py
Update gzip & tarfile & xmlrpc & pydoc + associated tests to 3.12.7 #5480hashlib.py
heapq.py
unchangedhmac.py
Update Lib/test/test_hmac.py to 3.12 version #5188html
http
imghdr.py
removed in 3.13imp.py
removed in 3.12importlib
First step for Python 3.12 support #5078inspect.py
Update dataclasses, inspect from CPython 3.12 #5377io.py
Update io, _pyio, test_io from CPython 3.12 #5370_pyio.py
Update io, _pyio, test_io from CPython 3.12 #5370ipaddress.py
Update ipaddress from CPython v3.12.3 #5312json
keyword.py
linecache.py
locale.py
logging
Update Logging to 3.12.7 #5478mailbox.py
mimetypes.py
multiprocessing
Update multiprocessing from CPython 3.12.3 #5263netrc.py
nntplib.py
removed in 3.13ntpath.py
Update ntpath from CPython 3.12.3 #5262nturl2path.py
numbers.py
opcode.py
Update test_opcodes.py, test_codeop.py and codeop.py from CPython v3.12 #5115operator.py
Update Lib/test/test_operator.py to 3.12 #5194optparse.py
os.py
Update os/posix/posixpath from CPython 3.12.2 #5257 Update test_os from CPython v3.12.3 #5310pathlib.py
Update pathlib from CPython v3.12.3 #5311pdb.py
pickle.py
Update pickle from CPython 3.12.3 #5260array.__reduce__
toarray.__reduce_ex__
#3876_compat_pickle.py
test/pickletester.py
supportstest_pickle.py
Update pickle from CPython 3.12.3 #5260test/test_picklebuffer.py
pickletools.py
Update pickle from CPython 3.12.3 #5260pkgutil.py
platform.py
plistlib.py
posixpath.py
Update os/posix/posixpath from CPython 3.12.2 #5257pprint.py
UpdateLib/pprint.py
andLib/test/test_pprint.py
to 3.12 #5195pty.py
py_compile.py
pydoc.py
pydoc_data
queue.py
quopri.py
random.py
re.py
Update Sre Engine Implementing to CPython 3.12 #5125sre_compile.py
,sre_constants.py
,sre_parse.py
reprlib.py
rlcompleter.py
runpy.py
sched.py
secrets.py
selectors.py
Update subprocess/selectors from CPython 3.12.3 #5290shelve.py
shlex.py
shutil.py
Bump shutil to 3.12.3 #5228signal.py
Update signal from CPython 3.12.3 #5280site.py
Update site from CPython v3.12.3 #5313_sitebuiltins.py
smtpd.py
removed in 3.13smtplib.py
Update Logging to 3.12.7 #5478sndhdr.py
removed in 3.13socket.py
Update socket and test from CPython 3.12.2 #5255socketserver.py
sqlite3
ssl.py
stat.py
statistics.py
string.py
stringprep.py
struct.py
subprocess.py
Update subprocess/selectors from CPython 3.12.3 #5290sunau.py
removed in 3.13sysconfig.py
tabnanny.py
tarfile.py
telnetlib.py
removed in 3.13tempfile.py
textwrap.py
this.py
threading.py
timeit.py
token.py
tokenize.py
tomllib
trace.py
traceback.py
tty.py
types.py
typing.py
Import typing Self Error #5149unittest
First step for Python 3.12 support #5078urllib
uu.py
Updateuu.py
andtest_uu.py
from CPython v3.12.0 #5161 removed in 3.13uuid.py
venv
warnings.py
weakref.py
webbrowser.py
wsgiref
xdrlib.py
removed in 3.13xml
xmlrpc
zipapp.py
zipfile.py
zipimport.py
PYTHONSAFEPATH
#4541List of tests without python libraries
test/test___all__.py
test/test__locale.py
Update test__locale.py and test_atexit.py from CPython v3.12 #5114test/test__opcode.py
test/test_abstract_numbers.py
test/test_array.py
array.__reduce__
toarray.__reduce_ex__
#3876test/test_asdl_parser.py
test/test_asyncgen.py
test/test_atexit.py
Update test__locale.py and test_atexit.py from CPython v3.12 #5114test/test_audioop.py
test/test_audit.py
test/test_augassign.py
test/test_baseexception.py
test/test_bigaddrspace.py
Update test files from CPython v3.12.0 #5122test/test_bigmem.py
Update test files from CPython v3.12.0 #5122test/test_binascii.py
test/test_binop.py
unchangedtest/test_bool.py
Update test files from CPython v3.12.0 #5122test/test_buffer.py
test/test_bufio.py
Update test files from CPython v3.12.0 #5122test/test_builtin.py
test/test_bytes.py
test/test_bz2.py
test/test_c_locale_coercion.py
Update test files from CPython v3.12.0 #5122test/test_call.py
test/test_charmapcodec.py
test/test_check_c_globals.py
test/test_class.py
Update test files from CPython v3.12.0 #5122test/test_clinic.py
test/test_cmath.py
Update test files from CPython v3.12.0 #5122test/test_cmd_line.py
Update test files from CPython v3.12.0 #5127test/test_cmd_line_script.py
Update test files from CPython v3.12.0 #5127test/test_codeccallbacks.py
unchangedtest/test_compare.py
Update test files from CPython v3.12.0 #5127test/test_compile.py
test_builtin.py test_compile unit test fix #5251test/test_complex.py
Update test files from CPython v3.12.0 #5127test/test_contains.py
unchangedtest/test_context.py
Update test files from CPython v3.12.0 #5127test/test_contextlib_async.py
test/test_coroutines.py
test/test_crashers.py
Update test_crashers from Cpython v3.11.2 #4807 CPython specifictest/test_csv.py
【Need Update csv.rs】Update csv.py and test_csv.py from CPython v3.12 #5176test/test_decorators.py
Update test files from CPython v3.12.0 #5127test/test_defaultdict.py
Update test files from CPython v3.12.0 #5127test/test_deque.py
unchangedtest/test_descr.py
Update test files from CPython v3.12.0 #5127test/test_descrtut.py
Update test files from CPython v3.12.0 #5127test/test_devpoll.py
unchangedtest/test_dict.py
Update test files from CPython v3.12.0 #5127test/test_dict_version.py
Update test_dict_version.py from Cpython v3.11.2 #4809 Not implemented in RustPythontest/test_dictcomps.py
unchangedtest/test_dictviews.py
Update test files from CPython v3.12.0 #5127test/test_docxmlrpc.py
unchangedtest/test_dtrace.py
Update test files from CPython v3.12.0 #5127test/test_dynamic.py
Update test files from CPython v3.12.0 #5127test/test_dynamicclassattribute.py
unchangedtest/test_eintr.py
Update test files from CPython v3.12.0 #5127test/test_embed.py
test/test_enumerate.py
test/test_eof.py
Update test files from CPython v3.12.0 #5127test/test_epoll.py
Update test files from CPython v3.12.0 #5127test/test_errno.py
unchangedtest/test_except_star.py
test/test_exception_group.py
ExceptionGroup #5254test/test_exception_hierarchy.py
unchangedtest/test_exception_variations.py
test/test_exceptions.py
test/test_extcall.py
test/test_faulthandler.py
test/test_fcntl.py
test/test_file.py
Update libraries and test files from CPython v3.12 #5134test/test_file_eintr.py
test/test_fileio.py
test/test_fileutils.py
test/test_finalization.py
test/test_float.py
test/test_flufl.py
Add test_flufl.py from Cpython v3.11.2 #4824 CPython specifictest/test_fork1.py
test/test_format.py
test/test_frame.py
test/test_frozen.py
test/test_fstring.py
test/test_funcattrs.py
test/test_future.py
test/test_future3.py
test/test_future4.py
test/test_future5.py
test/test_gdb.py
test/test_generator_stop.py
test/test_generators.py
test/test_genericalias.py
test/test_genericclass.py
test/test_genexps.py
test/test_getpath.py
test/test_global.py
test/test_grammar.py
test/test_grp.py
test/test_hash.py
test/test_hashlib.py
test/test_index.py
test/test_int.py
test/test_int_literal.py
(unchanged)test/test_interpreters.py
test/test_ioctl.py
test/test_isinstance.py
test/test_iter.py
test/test_iterlen.py
test/test_itertools.py
Add itertools.batched Support #5209test/test_keywordonlyarg.py
test/test_kqueue.py
test/test_largefile.py
test/test_launcher.py
test/test_list.py
test/test_listcomps.py
test/test_lltrace.py
test/test_long.py
test/test_longexp.py
test/test_marshal.py
test/test_math.py
Updating test_math.py to CPython 3.12.9 #5507test/test_memoryio.py
test/test_memoryview.py
test/test_metaclass.py
test/test_minidom.py
test/test_mmap.py
test/test_module.py
First step for Python 3.12 support #5078test/test_multibytecodec.py
test/test_named_expressions.py
test/test_nis.py
test/test_numeric_tower.py
test/test_opcache.py
test/test_openpty.py
test/test_ordered_dict.py
test/test_ossaudiodev.py
test/test_osx_env.py
test/test_patma.py
test/test_peepholer.py
test/test_pep646_syntax.py
test/test_pkg.py
test/test_poll.py
test/test_popen.py
test/test_positional_only_arg.py
test/test_posix.py
Update os/posix/posixpath from CPython 3.12.2 #5257test/test_pow.py
test/test_print.py
test/test_property.py
test/test_pulldom.py
test/test_pwd.py
test/test_pyexpat.py
test/test_raise.py
test/test_range.py
test/test_readline.py
test/test_regrtest.py
test/test_repl.py
test/test_resource.py
test/test_richcmp.py
test/test_robotparser.py
test/test_sax.py
test/test_scope.py
test/test_script_helper.py
test/test_select.py
test/test_set.py
&=
and-=
operator between Set types do not work correctly. #3992test/test_setcomps.py
test/test_slice.py
test/test_smtpnet.py
test/test_sort.py
test/test_source_encoding.py
test/test_spwd.py
test/test_stable_abi_ctypes.py
test/test_startfile.py
test/test_strftime.py
test/test_string.py
test/test_string_literals.py
test/test_strptime.py
test/test_strtod.py
test/test_structseq.py
test/test_subclassinit.py
test/test_sundry.py
test/test_super.py
metaclass
and internal contents ofclasscell
in__build_class__
#3865test/test_support.py
First step for Python 3.12 support #5078test/test_syntax.py
test.test_sys
PYTHONSAFEPATH
#4541test/test_sys_setprofile.py
test/test_sys_settrace.py
test/test_syslog.py
test/test_tcl.py
test/test_thread.py
test/test_threadedtempfile.py
test/test_threadsignals.py
test/test_time.py
time.strftime(arg)
fails when arg is not valid format string #4157test/test_timeout.py
test/test_tix.py
test/test_tuple.py
test/test_type_annotations.py
test/test_type_cache.py
test/test_type_comments.py
test/test_typechecks.py
test/test_types.py
test/test_ucn.py
test/test_unary.py
test/test_unicode.py
First step for Python 3.12 support #5078test/test_unicode_file.py
test/test_unicode_file_functions.py
test/test_unicode_identifiers.py
test/test_unicodedata.py
test/test_univnewlines.py
test/test_unpack.py
test/test_unpack_ex.py
test/test_unparse.py
test/test_userdict.py
test/test_userlist.py
test/test_userstring.py
test/test_utf8_mode.py
test/test_utf8source.py
test/test_wait3.py
test/test_wait4.py
test/test_weakset.py
test/test_winconsoleio.py
test/test_winreg.py
test/test_winsound.py
test/test_with.py
test/test_yield_from.py
test/test_zlib.py
Update zlib from 3.12.6 and _ZlibDecompressor implementation #5476test/test_asyncio
test/test_capi
test/test_import
test/test_tools
Not yet added libraries
These libraris are not added yet. Pure python one will be possible while others are not.
_bootsubprocess.py
cProfile.py
crypt.py
removed in 3.13curses
idlelib
imaplib.py
imp.py
lzma.py
mailcap.py
removed in 3.13modulefinder.py
msilib
removed in 3.13pipes.py
removed in 3.13poplib.py
pstats.py
pyclbr.py
symtable.py
tkinter
tracemalloc.py
turtle.py
wave.py
zoneinfo
Add zoneinfo Library from Python 3.12.6 #5400The text was updated successfully, but these errors were encountered: