| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
- getgroups always fails.
- geteuid and getegid always return 0 (root), which confuse tarfile and
tests.
- hardlinks (link, linkat) always fails.
- non-encodable file names are not supported by NODERAWFS layer.
- mark more tests with dependency on subprocess and multiprocessing.
Mocking does not work if the module fails to import.
|
| |
|
|
|
|
| |
characters. (GH-21035)
|
|
|
|
| |
Python 2.4 dropped MacOS 9 support. The macpath module was deprecated
in Python 3.7. This change removes it.
|
|
|
|
|
|
|
|
|
|
| |
to invalid paths. (#7695)
Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(),
os.path.isfile(), os.path.islink(), and os.path.ismount() now return False
instead of raising ValueError or its subclasses UnicodeEncodeError
and UnicodeDecodeError for paths that contain characters or bytes
unrepresentative at the OS level.
|
|
|
|
|
|
|
|
| |
* Test exists(), lexists(), isdir(), isfile(), islink(), ismount()
with bytes paths.
* Remove unneeded silencing DeprecationWarning for ismount() with
bytes path.
* Test common functions with unencodable and undecodable paths.
* Minor clean up and refactoring.
|
| |
|
| |
|
|
|
|
|
|
| |
Access to mkfifo(), mknod() and hard link creation is controled
by SELinux on Android.
Also remove test.support.android_not_root.
|
|
|
|
| |
a non-root user on Android where access rights are controled by SELinux MAC.
|
| |
|
|
|
|
|
|
| |
os.path.
Thanks to Jelle Zijlstra for the initial patch against posixmodule.c.
|
|\ |
|
| | |
|
|\ \
| |/ |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Replace "try/finally: os.remove()" with self.addCleanup(support.unlink) or
self.addCleanup(support.rmdir): the support function handles the case when
the file doesn't exist
* Replace "try/finally: f.close()" with "with open(...) as f:"
* test_getsize: add a second test with a different size
* Create file using "x" mode to ensure that the file didn't exist before, to
detect bugs in tests
* Open files in unbuffered mode (buferring=0) to write immediatly data on disk
* Replace map() with simpler code
* Split isdir() unit test into two units tests to make them less dependant,
same change for isfile() test
* test_samefile(): test also two different files
|
|
|
|
|
| |
The original form is incorrect grammar and feels awkward, even though the
meaning is clear.
|
|
|
|
| |
Idea by R. David Murray.
|
| |
|
|
|
|
| |
more helpful error message for unsupported or mismatched types of arguments.
|
|\
| |
| |
| | |
variables names and values.
|
| |
| |
| |
| | |
variables names and values.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
work with unittest test discovery. Patch by Zachary Ware.
|
| |\
| | |
| | |
| | |
| | | |
TESTFN_UNDECODABLE, TESTFN_NONASCII of test.support from Python 3.4. Backport
tests on non-ASCII paths.
|
| | |
| | |
| | |
| | |
| | | |
TESTFN_NONASCII of test.support from Python 3.4. Backport tests on non-ASCII
paths.
|
| | |
| | |
| | |
| | |
| | | |
This issue is now fixed due to changes in Issue #11939, so I've refactored
the tests to cover the hard link case. There are no code changes here.
|
| | |
| | |
| | |
| | |
| | |
| | | |
By setting the st_dev attribute, we can then remove some Windows-specific
code and move os.path.samefile/sameopenfile/samestat to Lib/genericpath.py
so all platforms share the same implementation.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Check if data is decoded by os.fsdecode() (filesystem encoding with
surrogateescape error handler, PEP 383), not by UTF-8 or the filesystem
encoding in strict mode.
Use TESTFN_UNDECODABLE in test_cmd_line_script.test_non_ascii() on UNIX.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
test_genericpath.test_nonascii_abspath()
* support.TESTFN_UNDECODABLE was decodable if the filesystem encoding was
cp932
* test_genericpath.test_nonascii_abspath() didn't work on Windows if the
path was not decodable (ex: with cp932)
|
| | |
| | |
| | |
| | |
| | | |
These constants are used to test functions with non-ASCII data, especially
filenames.
|
|/ /
| |
| |
| | |
The real bug (issue #15478) has been fixed correctly.
|
| |
| |
| |
| | |
if the bytes filenames cannot be encoded from the file system (ANSI) code page
|
| | |
|
| | |
|
|/
|
|
|
| |
Unicode filenames instead of bytes filenames to not depend on the ANSI code
page anymore and to support any filename.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
------------------------------------------------------------------------
r81149 | florent.xicluna | 2010-05-13 23:40:01 +0200 (jeu. 13 mai 2010) | 2 lignes
Better test skipping, with message in the log.
------------------------------------------------------------------------
r81150 | florent.xicluna | 2010-05-13 23:41:05 +0200 (jeu. 13 mai 2010) | 2 lignes
Improve test feedback to troubleshoot issue #8423 on OS X.
------------------------------------------------------------------------
r81151 | florent.xicluna | 2010-05-14 01:46:48 +0200 (ven. 14 mai 2010) | 2 lignes
Revert changeset r81150 which helped diagnose issue #8423 on some OS X buildbot.
------------------------------------------------------------------------
r82056 | florent.xicluna | 2010-06-17 22:30:56 +0200 (jeu. 17 juin 2010) | 2 lignes
Add few words about test.test_genericpath.CommonTest
------------------------------------------------------------------------
|
|
|
|
| |
or bytes.
|
| |
|
|
|
|
|
| |
UTF name on Mac OS X because the OS deny it (the name have to be a valid UTF8
string).
|
| |
|
|
|
|
| |
do some cleanup.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78734 | florent.xicluna | 2010-03-06 19:07:18 +0100 (sam, 06 mar 2010) | 2 lines
Create test_genericpath.CommonTest and reuse it to test other path modules.
........
r78735 | florent.xicluna | 2010-03-06 19:52:52 +0100 (sam, 06 mar 2010) | 2 lines
Minor tweaking of previous r78734, and add a NEWS entry.
........
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78249 | ezio.melotti | 2010-02-20 11:40:07 +0200 (Sat, 20 Feb 2010) | 1 line
Remove e assertIs definitions and use correct assert* methods.
........
|
| |
|
| |
|
| |
|