Commit Graph

51 Commits

Author SHA1 Message Date
Shahar Naveh
903a5f28a0 Update test_posix.py from 3.14.3 and adjust android cfg (#7320)
* Update `test_posix.py` from 3.14.3

* patch

* Align availability

* Fix test_fchmod_file
2026-03-03 09:09:47 +09:00
Jeong, YunWon
c045593e4e impl more nt (#6984)
* mpl new features

* windows encodings

* impl nt functions

* revert

* codecs

* fix codecs
2026-02-04 09:53:02 +09:00
Jeong, YunWon
c0f3a09c2b more windows impl 2026-02-03 22:10:31 +09:00
Jeong, YunWon
cb2be65a8b fix timeout 2026-02-03 22:10:31 +09:00
CPython Developers
ac1dcf7d4b Update test_posix from v3.14.2 2026-02-03 22:10:31 +09:00
Jeong, YunWon
f379ea8327 winapi._findfirstfile,nt.chmod (#6401) 2025-12-12 00:18:02 +09:00
ShaharNaveh
a50cc9b915 skip flaky test 2025-10-22 12:04:01 +03:00
ShaharNaveh
715529bef1 mark failing tests 2025-10-22 11:36:40 +03:00
ShaharNaveh
604b708741 Mark failing tests in test_posix.py 2025-10-22 10:57:47 +03:00
ShaharNaveh
84b254209f Patch test_posix.py 2025-10-22 10:57:47 +03:00
ShaharNaveh
19b6241ef9 Update changed files from 3.13.7 -> 3.13.8 2025-10-22 10:57:47 +03:00
Noa
0c8ae3a384 Update nix to 0.30 (#6120) 2025-09-04 08:44:27 +09:00
Jeong, YunWon
7473a43fab Fix posix tests (#5811) 2025-06-22 09:58:29 +09:00
Snowapril
aa0353a501 Fix best_base to select proper base class (#5324)
* add __basicsize__ getter

* modify best_base function to get proper base

* inherit basicsize from the base type

---------

Signed-off-by: snowapril <sinjihng@gmail.com>
2024-05-19 15:48:56 +09:00
CPython Developers
8f6cf6fef7 Update test_posix from CPython 3.12.2 2024-04-23 12:56:43 +09:00
Andrey Maltsev
2d7ec43173 Update Lib/test/test_posix.py
Co-authored-by: fanninpm <fanninpm@miamioh.edu>
2023-04-18 22:36:03 +03:00
Andrey Maltsev
536da88df7 Update Lib/test/test_posix.py
Co-authored-by: fanninpm <fanninpm@miamioh.edu>
2023-04-18 22:25:32 +03:00
Andrey Maltsev
415fac82b2 Update test_posix.py from Cpython v3.11.2 2023-04-18 19:15:37 +00:00
Jeong YunWon
b96a0f87f7 skip failing test_posix 2022-08-15 02:36:46 +09:00
CPython Developers
a27218b8b3 Update {test_}posix{path} from CPython 3.10.6 2022-08-15 02:36:46 +09:00
Dean Li
29c953d9a6 test: update test.support and test_io to 3.10
Initially this is only meant to be a small update for `test_io.py`.
But it turns out that `test.support` need a lot of cleanup especially
for `test.support.warnings_helper`.
2022-04-18 22:50:55 +08:00
Daniel Watkins
98079878cb stdlib/os.rs: update wrong-type exception text for __fspath__
In CPython this error message is constructed by path_converter in
posixmodule.c[0].

[0] https://github.com/python/cpython/blob/main/Modules/posixmodule.c#L1260
2022-04-16 00:10:30 +09:00
Dean Li
6f98288e84 test: use import_helper 2021-11-29 21:03:02 +08:00
Dean Li
5ee4fb899b test: use os_helper 2021-11-28 20:51:32 +08:00
Jeong YunWon
913b78ca44 Revert "Merge pull request #3433 from deantvv/test-update"
This reverts commit 9fa5c5ac66, reversing
changes made to e7fa32c687.
2021-11-17 17:06:51 +09:00
Dean Li
49a5805d11 test: use os_helper 2021-11-13 02:18:33 +00:00
Dean Li
bfe10aa448 test: update test_posix.py 2021-11-06 21:04:14 +08:00
Dean Li
04821ce730 os: fix posix_spawn exception 2021-11-06 14:40:54 +08:00
Dean Li
db212d80ff os: implement os-error-str according to CPython
As was: "FileNotFoundError: [Errno 2] No such file or directory (os
error 2)"
To be: "FileNotFoundError: [Errno 2] No such file or directory (os
error 2): 'filename' -> 'filename2'"

Reference CPython implementation
```
if (self->filename) {
    if (self->filename2) {
        return PyUnicode_FromFormat("[Errno %S] %S: %R -> %R",
                                    OR_NONE(self->myerrno),
                                    OR_NONE(self->strerror),
                                    self->filename,
                                    self->filename2);
    } else {
        return PyUnicode_FromFormat("[Errno %S] %S: %R",
                                    OR_NONE(self->myerrno),
                                    OR_NONE(self->strerror),
                                    self->filename);
    }
}
if (self->myerrno && self->strerror)
    return PyUnicode_FromFormat("[Errno %S] %S",
                                self->myerrno, self->strerror);
```
2021-11-03 17:30:28 +08:00
Daniel Watkins
156cf6bc86 stdlib/posix.rs: implement mknod 2021-10-31 09:04:56 -04:00
Dean Li
6ec380369a os: fix test_putenv for all os 2021-10-25 19:40:32 +08:00
Jeong YunWon
b0795e89f7 Merge pull request #3370 from deantvv/test-posix-reason
test: posix update failure reason
2021-10-24 19:53:38 +09:00
Dean Li
46c38c09d2 test: posix update failure reason 2021-10-24 18:05:19 +08:00
Dean Li
91256a4ec6 posix: add rtld constants 2021-10-24 17:53:49 +08:00
Jeong YunWon
fd2ba5159e Merge pull request #3204 from fanninpm/cleanup-skipped-tests
Clean up some skipped tests
2021-10-21 02:39:15 +09:00
Jeong YunWon
5ce05fcca0 Merge pull request #3330 from deantvv/uid-gid-from-object
posix: handle case -1 for `Uid` and `Gid`
2021-10-21 01:43:52 +09:00
Dean Li
c56db2fafa os: fix putenv
Check key and value before calling `env::set_var`

From doc of `env::set_var`,
```

This function may panic if `key` is empty, contains an ASCII equals sign
`'='` or the NUL character `'\0'`, or when the value contains the NUL
character.
```
2021-10-20 23:15:39 +08:00
Dean Li
86920e21e5 posix: handle case -1 for Uid and Gid
For `Uid` and `Gid`, -1 means does not change the value.
2021-10-20 22:23:36 +08:00
Padraic Fanning
48736d903d Clean up skips in test_posix 2021-10-17 19:01:35 -04:00
Jeong YunWon
7359f9dda0 skip test_sched_priority for now 2021-09-02 20:20:11 +09:00
Dean Li
88a86fdd9e os: Implement getgroups
`getgroups` is already implement in rust, just wrap the function
to let it be used in python.
2021-06-13 10:39:25 +08:00
Dean Li
28589f67a1 test: add reason of failure for tests
Help developers to find failure by better documenting it.
2021-06-10 20:42:39 +08:00
Noah
d5dbe293e0 Merge pull request #2669 from deantvv/os-listdir-optional-arg
os: argument in listdir should be optional
2021-05-24 20:21:08 -05:00
Dean Li
fde0431bd1 os: argument in listdir should be optional
From `listdir(path)` to `listdir(path='.')`
2021-05-24 18:12:58 +08:00
Noah
4d03383e6c Unskip tests 2021-05-21 17:38:51 -05:00
Noah
d969299de5 Always have fds represent the C RT's fds, even on windows 2021-04-27 08:15:12 -05:00
Noah
501c555c54 Unskip tests 2021-04-11 17:38:44 -05:00
kenkoooo
1a3b6a1f92 Skip TestPosixWeaklinking for macOS 2021-02-12 21:55:33 +09:00
kenkoooo
c81d85c0f9 Explain test_putenv skip 2021-02-12 21:17:00 +09:00
kenkoooo
57ceebbd6b Mark unimplemented tests 2021-02-12 20:53:16 +09:00