Commit Graph
10256 Commits
Author SHA1 Message Date
snowapril e009f12e3f Update random module to cpython 3.10 2022-02-06 14:56:39 +09:00
Jeong YunWon 30fe670d75 Merge pull request #3530 from moreal/correct-typing-re
Correct `typing.re` initialization
2022-02-06 12:12:00 +09:00
Jeong YunWon 2baa4c016e Merge pull request #3528 from fanninpm/test-pickletools
Add test_pickletools from CPython 3.9
2022-02-06 12:11:23 +09:00
Jeong YunWon 462ce8290e Merge pull request #3534 from rng-dynamics/fix-runtest
Fix: parallel execution of python unit tests
2022-02-06 12:11:02 +09:00
Jeong YunWon cd3ff1fe7b Merge pull request #3537 from fanninpm/itertools-combinations
Allow kwargs in itertools.combinations() signature
2022-02-06 12:04:19 +09:00
Jeong YunWon 6dd6409660 Merge pull request #3538 from fanninpm/test-3-point-10
[TEST] Use CPython 3.10 as a CI reference
2022-02-06 12:03:50 +09:00
Padraic Fanning c990fe5ce4 Add Pipfile.lock to wasm/tests/.gitignore 2022-02-05 21:22:09 -05:00
Padraic Fanning f283827787 Remove Pipfile.lock 2022-02-05 21:21:30 -05:00
Padraic Fanning 022b4b233e Change socket.timeout to be a TimeoutError 2022-02-05 20:44:04 -05:00
Padraic Fanning d187a20a09 Add Pipfile.lock to extra_tests/.gitignore 2022-02-05 20:44:03 -05:00
Padraic Fanning eb9c6ca6e9 Remove Pipfile.lock 2022-02-05 20:44:03 -05:00
Jeong YunWon 9570e9d7ad try 3.10 2022-02-05 14:53:52 -05:00
Padraic Fanning 23b33cb9bf Skip doctests 2022-02-05 13:48:53 -05:00
Padraic Fanning 6c956b5270 Mark erroring/failing tests 2022-02-05 13:48:52 -05:00
Padraic Fanning 981fac0881 Harmonize pickletester.py imports with RustPython 2022-02-05 13:48:52 -05:00
Padraic Fanning d51e253c84 Add test/support/warnings_helper from CPython 3.9 2022-02-05 13:48:52 -05:00
Padraic Fanning 7880cd6709 Add test/pickletester.py from CPython 3.9 2022-02-05 13:48:52 -05:00
Padraic Fanning d5f6e23e61 Add pickletools from CPython 3.9 2022-02-05 13:48:52 -05:00
Padraic Fanning 00f8796d1f Add test_pickletools from CPython 3.9 2022-02-05 13:48:51 -05:00
Padraic Fanning 1d9536f427 Allow kwargs in itertools.combinations() signature
Fixes #3533
2022-02-05 13:37:29 -05:00
Alexander Scharinger 18fab32c0a Fix: parallel execution of python unit tests 2022-02-05 13:16:08 +01:00
Moreal e3f4e2a48a Merge remote-tracking branch 'upstream/main' into correct-typing-re 2022-02-05 12:28:15 +09:00
Jeong YunWon 2edfb1722c Merge pull request #3536 from fanninpm/fix-ci-yaml-syntax
Fix syntax error in `ci.yaml`
2022-02-04 17:35:41 +09:00
Padraic Fanning ef6ecda8b4 Fix syntax error in ci.yaml 2022-02-03 16:39:25 -05:00
Jeong YunWonandfanninpm 2a69e77865 Disable install-pip test (#3535)
* disable get-pip test

* if: false instead of comment

Co-authored-by: fanninpm <fanninpm@miamioh.edu>

Co-authored-by: fanninpm <fanninpm@miamioh.edu>
2022-02-03 14:37:44 -06:00
Moreal 44b87edf4a Unmark passing tests 2022-02-01 00:47:45 +09:00
Moreal 49a4bb651b Correct typing.re initialization 2022-01-31 21:44:14 +09:00
Jeong YunWon bd295e0f44 Merge pull request #3527 from moreal/type-set-name
Allow heap types' `__name__` setter
2022-01-29 17:41:54 +09:00
Jeong YunWon f737028799 dedent blocks 2022-01-29 11:45:40 +09:00
Jeong YunWon a0ef49b3ba Merge pull request #3525 from devnexen/fcntl_module_upd
fcntl module update proposal apple and freebsd specific flags.
2022-01-28 23:32:39 +09:00
Moreal 2733202076 Correct typing.io initialization 2022-01-28 23:07:19 +09:00
Moreal d531e90319 Do not split name if the type is heap type 2022-01-28 23:04:16 +09:00
Moreal 758d52909f Add type.__name__ setter 2022-01-28 23:03:36 +09:00
Jeong YunWon b70169e4f0 Merge pull request #3500 from deantvv/update-lib-os
Update `Lib/os.py`
2022-01-28 00:22:18 +09:00
Noa 4c82fbdff6 Merge pull request #3505 from coolreader18/sys_getrandom
Use syscall instead of the getrandom libc function
2022-01-26 13:59:40 -06:00
Noa 24f9c04201 Merge pull request #3514 from coolreader18/fix-wasi-time
Fix unsatisfied times import on wasi
2022-01-26 13:59:17 -06:00
Noa 8c9fb2c775 Fix unsatisfied times import on wasi 2022-01-26 13:01:35 -06:00
Noa 5aef92cf4f Bring Duration into scope in time.rs 2022-01-26 13:01:35 -06:00
Noa 318a152a5c Use syscall instead of the getrandom libc function 2022-01-26 13:00:58 -06:00
Jeong YunWon a0c00b259a Merge pull request #3526 from burck1/module-filecmp
Add the filecmp module from cpython v3.10.2
2022-01-25 20:06:05 +09:00
Alex Burck 986b755f3a cargo run --release -- -m test test_genericalias -v
== RustPython 3.9.0alpha (heads/module-filecmp:7b7378509, Jan 23 2022, 21:05:31) [rustc 1.58.1]
== macOS-11.6.1-x86_64-64bit little-endian
== cwd: /private/var/folders/fv/652pf8d94lg8fmxym5m8g9xh0000gn/T/test_python_1550
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
Run tests sequentially
0:00:00 load avg: 2.26 [1/1] test_genericalias
test_class_methods (test.test_genericalias.BaseTest) ... ok
test_copy (test.test_genericalias.BaseTest) ... ok
test_dir (test.test_genericalias.BaseTest) ... ok
test_equality (test.test_genericalias.BaseTest) ... ok
test_exposed_type (test.test_genericalias.BaseTest) ... ok
test_generic_subclass (test.test_genericalias.BaseTest) ... ok
test_instantiate (test.test_genericalias.BaseTest) ... ok
test_isinstance (test.test_genericalias.BaseTest) ... ok
test_issubclass (test.test_genericalias.BaseTest) ... ok
test_no_chaining (test.test_genericalias.BaseTest) ... ok
test_no_kwargs (test.test_genericalias.BaseTest) ... ok
test_parameter_chaining (test.test_genericalias.BaseTest) ... ok
test_parameters (test.test_genericalias.BaseTest) ... ok
test_pickle (test.test_genericalias.BaseTest) ... ok
test_repr (test.test_genericalias.BaseTest) ... expected failure
test_subclassing (test.test_genericalias.BaseTest) ... ok
test_subclassing_types_genericalias (test.test_genericalias.BaseTest) ... ok
test_subscriptable (test.test_genericalias.BaseTest) ... ok
test_type_generic (test.test_genericalias.BaseTest) ... ok
test_type_subclass_generic (test.test_genericalias.BaseTest) ... ok
test_unbound_methods (test.test_genericalias.BaseTest) ... ok
test_union (test.test_genericalias.BaseTest) ... ok
test_union_generic (test.test_genericalias.BaseTest) ... expected failure
test_unsubscriptable (test.test_genericalias.BaseTest) ... ok
test_weakref (test.test_genericalias.BaseTest) ... ok

----------------------------------------------------------------------

Ran 25 tests in 0.052s

OK (expected failures=2)
test_genericalias passed

== Tests result: SUCCESS ==

1 test OK.

Total duration: 164 ms
Tests result: SUCCESS
2022-01-23 21:57:01 -06:00
Alex Burck 51c2261762 enable filecmp in Lib/test/test_genericalias.py 2022-01-23 21:56:20 -06:00
Alex Burck b19874154d cargo run --release -- -m test test_filecmp -v
== RustPython 3.9.0alpha (heads/module-filecmp:7b7378509, Jan 23 2022, 21:05:31) [rustc 1.58.1]
== macOS-11.6.1-x86_64-64bit little-endian
== cwd: /private/var/folders/fv/652pf8d94lg8fmxym5m8g9xh0000gn/T/test_python_607
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
Run tests sequentially
0:00:00 load avg: 8.81 [1/1] test_filecmp
test_cmpfiles (test.test_filecmp.DirCompareTestCase) ... ok
test_default_ignores (test.test_filecmp.DirCompareTestCase) ... ok
test_dircmp (test.test_filecmp.DirCompareTestCase) ... ok
test_dircmp_subdirs_type (test.test_filecmp.DirCompareTestCase)
Check that dircmp.subdirs respects subclassing. ... ok
test_report_full_closure (test.test_filecmp.DirCompareTestCase) ... ok
test_report_partial_closure (test.test_filecmp.DirCompareTestCase) ... ok
test_cache_clear (test.test_filecmp.FileCompareTestCase) ... ok
test_different (test.test_filecmp.FileCompareTestCase) ... ok
test_matching (test.test_filecmp.FileCompareTestCase) ... ok

----------------------------------------------------------------------

Ran 9 tests in 0.041s

OK
test_filecmp passed

== Tests result: SUCCESS ==

1 test OK.

Total duration: 97 ms
Tests result: SUCCESS
2022-01-23 21:54:07 -06:00
Alex Burck 1f8cc27e77 add os import for _dummy_os 2022-01-23 21:50:36 -06:00
Alex Burck f5fcbfa7f7 Copy filecmp module and tests from cpython v3.10.2 2022-01-23 21:49:43 -06:00
David CARLIER 44222e562e fcntl module update proposal apple and freebsd specific flags. 2022-01-23 23:29:02 +00:00
Dean Li b95b580a65 test: mark os success tests 2022-01-22 22:20:04 +08:00
Dean Li 1cef58f5ea os: update Lib 2022-01-22 22:20:04 +08:00
Dean Li 8ac22a7a97 io: implement text_encoding 2022-01-22 22:20:03 +08:00
Jeong YunWon 3328184712 Merge pull request #3508 from youknowone/non-exhaustive
add #[non_exhaustive]
2022-01-22 21:01:14 +09:00