Commit Graph

51 Commits

Author SHA1 Message Date
Marcin Pajkowski
da92c4acd5 Fix failing os.chmod tests 2019-08-20 00:51:06 +02:00
suewoon
648d7e3250 Add os.chomd 2019-08-20 00:31:15 +09:00
Marcin Pajkowski
94468f5e1d Remove assert os.getppid() < os.getpid() 2019-08-12 12:15:47 +02:00
yf
b672647a4a Fix tests 2019-08-07 11:34:28 +08:00
yf
0f3fbb401e Add os.ttyname 2019-08-07 10:16:38 +08:00
yf
18bbe94753 Add os.openpty 2019-08-04 18:26:15 +08:00
Marcin Pajkowski
53c653fd2b Implement several methods - os module
os.getpid  [RUST STD]
os.getegid [UNIX]
os.getgid  [UNIX]
os.getsid  [UNIX]
os.getuid  [UNIX]
os.geteuid [UNIX]
os.getppid [UNIX]
os.getpgid [UNIX]
os.setgid  [UNIX]
os.setegid [UNIX]
os.setpgid [UNIX]
os.setuid  [UNIX]
os.seteuid [UNIX]
2019-07-30 18:15:33 +02:00
hannut91
1dc5daa4d8 Fix TestWithTempDir test to pass on Mac
Fix TestWithTmpeDir test that comapre os.getcwd() and tmpdir.
os.getcwd() returns the result of resolving the symbolic link. But tmpdir
absolute path. Testing fails on Mac because the /tmp directory is a symbolic
link. Comparing the results of resolving tempdir will pass the test. But
RustPython does not implement lstat, so it does not pass, but in CPython The
test passes.
2019-06-29 14:58:44 +09:00
Aviv Palivoda
17cd22b8e8 Test OSError errno 2019-06-18 19:06:41 +03:00
Aviv Palivoda
9ee1ad93e0 Test os.rename 2019-06-18 19:06:41 +03:00
Aviv Palivoda
82f83ef345 Support more open flags 2019-06-15 16:22:51 +03:00
coolreader18
82e424acaa Merge branch 'master' into move-fspath 2019-05-12 21:46:43 -05:00
Jeong YunWon
64afd5ccf8 Add os.supports_* placeholders 2019-05-13 01:15:19 +09:00
Windel Bouwman
0a1399a42b Merge pull request #962 from skinny121/os_stat_time
Add st_{a,m,c}time to os.stat
2019-05-12 11:42:57 +02:00
ben
645c6dec48 Add wait between file modification and access 2019-05-12 08:55:39 +12:00
ben
f2703511b9 Fix dead code warning on windows and disable access time tests
as file access time on windows has quite bad resolution.
2019-05-12 08:26:37 +12:00
ben
4070baa6ac Add fsync and more tests for file times 2019-05-12 07:51:14 +12:00
Aviv Palivoda
d96d04f0fd Add os.fspath tests 2019-05-11 18:08:47 +03:00
ben
b01e960da7 Add st_{a,m,c}time to os.stat 2019-05-11 19:15:54 +12:00
Aviv Palivoda
c7e9bdd464 Add tests for chdir and getcwd 2019-05-11 09:29:24 +03:00
Aviv Palivoda
216f69e635 Use os.path 2019-05-08 16:46:45 +03:00
Aviv Palivoda
6153e2d6ca Add CPython genericpath.py 2019-05-08 16:25:33 +03:00
Aviv Palivoda
2c30e83896 Add follow_symlinks to stat 2019-05-05 20:04:39 +03:00
Aviv Palivoda
260af4d877 Add follow_symlinks to DirEntry.{is_file, is_dir} 2019-05-05 19:40:01 +03:00
Aviv Palivoda
914f32afc3 Add symlink tests 2019-05-05 19:17:30 +03:00
Aviv Palivoda
6c1dca7cc2 Add DirEntry.is_symlink 2019-05-04 18:14:21 +03:00
Aviv Palivoda
46ad1f5449 Add os.symlink 2019-05-04 18:01:23 +03:00
Aviv Palivoda
775be3a36a Add stat mode tests 2019-05-04 11:07:56 +03:00
Agent
180ec22d4b Add constants to os module (#883) 2019-04-27 09:41:19 -05:00
Aviv Palivoda
55bd00b600 Add stat_result.{st_size} 2019-04-22 18:52:35 +03:00
Aviv Palivoda
56958552f4 Add stat_result.{st_nlink, st_uid, st_gid} 2019-04-22 18:47:10 +03:00
Aviv Palivoda
9a1caa08c3 Add stat_result.{st_ino, st_dev} 2019-04-22 18:35:38 +03:00
Aviv Palivoda
384bf5b545 Add os.stat 2019-04-22 18:27:39 +03:00
Aviv Palivoda
64e6ea0016 Add DirEntry.{is_file} 2019-04-21 12:06:49 +03:00
Aviv Palivoda
548f3f34c4 Add DirEntry.{is_dir} 2019-04-21 12:04:12 +03:00
Aviv Palivoda
858a6d03b0 Add DirEntry.{name, path} 2019-04-21 11:42:57 +03:00
Aviv Palivoda
d704a0fcda Rename os test folder 2019-04-19 17:14:14 +03:00
Aviv Palivoda
8215ec0a7c Don't delete test dir 2019-04-19 17:04:04 +03:00
Aviv Palivoda
aef973802c Close open reference to test file 2019-04-19 16:20:44 +03:00
Aviv Palivoda
08f2a5705b Add prints for windows debug 2019-04-19 14:40:01 +03:00
Aviv Palivoda
00e46b7d72 Try to fix windows test 2019-04-19 13:50:34 +03:00
Aviv Palivoda
abb9cde62c Use temp dir for os test 2019-04-19 12:23:45 +03:00
Aviv Palivoda
a75e7635d5 Add os.sep 2019-04-19 12:09:11 +03:00
coolreader18
11bf84e8c1 Fix test again 2019-04-16 22:01:09 -05:00
coolreader18
96d6c518e9 Fix os.unsetenv test for windows 2019-04-16 19:40:01 -05:00
Aviv Palivoda
4293b11429 Add environ class 2019-04-11 18:55:53 +03:00
Aviv Palivoda
04acfe2665 Remove failing line in windows 2019-04-06 17:29:52 +03:00
Aviv Palivoda
cdd39bc50e Add tests for os.{read, write} 2019-04-05 19:51:38 +03:00
Aviv Palivoda
37e7972dcd Add os.read 2019-04-05 19:49:13 +03:00
Joey Hain
47e95486f0 Reuse and improve ergonomics of assert_raises utility
- Move assert_raises to testutils
- Add optional message argument, with reasonable default
- Reverse order of expr and exception type for readability
- Lambda argument no longer takes parameter
- Convert applicable snippets to use assert_raises
2019-02-16 09:32:42 -08:00