summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posix.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #8746: Use tempfile module to get tempdir and randomize theNed Deily2011-07-261-1/+3
| | | | link file name.
* Issue #8746: Correct faulty configure checks so that os.chflags() andNed Deily2011-06-281-12/+48
| | | | | | | os.lchflags() are once again built on systems that support these functions (*BSD and OS X). Also add new stat file flags for OS X (UF_HIDDEN and UF_COMPRESSED). Also add additional tests for os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
* Merged revisions 87958 via svnmerge fromAntoine Pitrou2011-01-121-1/+4
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87958 | antoine.pitrou | 2011-01-12 19:45:27 +0100 (mer., 12 janv. 2011) | 4 lines Issue #10822: Fix test_posix:test_getgroups failure under Solaris. Patch by Ross Lagerwall. ........
* Issue #4662: os.tempnam(), os.tmpfile() and os.tmpnam() now raise a py3kAntoine Pitrou2011-01-021-10/+16
| | | | DeprecationWarning.
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* Merged revisions 84492 via svnmerge fromAntoine Pitrou2010-09-041-7/+1
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84492 | antoine.pitrou | 2010-09-04 19:32:06 +0200 (sam., 04 sept. 2010) | 4 lines Issue #9581: Fix non-working PosixGroupsTester test case (it only runs as root, which is why nobody bothered about the failure) ........
* Merged revisions 83431 via svnmerge fromRonald Oussoren2010-08-031-4/+4
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83431 | ronald.oussoren | 2010-08-01 21:18:13 +0200 (Sun, 01 Aug 2010) | 6 lines test_getgroups as introduced with issue7900 failed on systems where 'id -G' and posix.getgroups() returned the same information, but one of the sources contains duplicate information. Rewrite the check using sets instead of lists. ........
* Merged revisions 83133 via svnmerge fromRonald Oussoren2010-07-241-1/+5
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83133 | ronald.oussoren | 2010-07-24 15:15:19 +0100 (Sat, 24 Jul 2010) | 5 lines Fix for issue 9367: the test code for os.getgroups assumes that the result of getgroups and the output of the id(1) command return groups in the same order. That assumption is both fragile and false. ........
* Merged revisions 83088 via svnmerge fromRonald Oussoren2010-07-241-1/+52
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83088 | ronald.oussoren | 2010-07-23 14:53:51 +0100 (Fri, 23 Jul 2010) | 8 lines This fixes issue7900 by adding code that deals with the fact that getgroups(2) might return more that MAX_GROUPS on OSX. See the issue (and python-dev archives) for the gory details. Summarized: OSX behaves rather oddly and Apple says this is intentional. ........
* Issue #9185: On Solaris and OpenBSD, posix_getcwd() could loop indefinitelyStefan Krah2010-07-131-1/+7
| | | | if the path length exceeded PATH_MAX.
* Revert temporary commit in r79937Antoine Pitrou2010-04-101-21/+3
|
* Temporary commit of fix to issue #5380 (in order to watch buildbot response)Antoine Pitrou2010-04-101-3/+21
|
* use assert[Not]IsInstance where appropriateEzio Melotti2010-01-241-2/+2
|
* use assert[Not]In where appropriateEzio Melotti2010-01-231-1/+1
|
* Fix possible integer overflow in lchown and fchown functions. For issue1747858.Gregory P. Smith2009-12-231-25/+48
|
* Issue #7333: The `posix` module gains an `initgroups()` function providingAntoine Pitrou2009-12-021-0/+22
| | | | | access to the initgroups(3) C library call on Unix systems which implement it. Patch by Jean-Paul Calderone.
* Issue #6508: Add posix.{getresuid,getresgid,setresuid,setresgid}.Martin v. Löwis2009-11-271-0/+42
|
* Try to fix Solaris buildbot rmtree failure in test_getcwd_long_pathnamesR. David Murray2009-07-091-2/+1
| | | | | | | cleanup. If this fix works, it means that Solaris is unique among our platforms in what happens when shutil.rmtree is called on the current working directory (ie: it doesn't work on Solaris, but it does everywhere else).
* Temporarily ignore rmtree errors in test_getcwd_long_pathnames to seeR. David Murray2009-07-091-1/+2
| | | | if the test gives useful failure info on Solaris buildbot.
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-12/+12
|
* Restore skips of posix and pty tests on Windows by calling theR. David Murray2009-04-211-1/+2
| | | | | test_support.import_module on the appropriate modules before any other imports.
* Add import_function method to test.test_support, and modify a number ofR. David Murray2009-03-301-4/+3
| | | | | | | | tests that expect to be skipped if imports fail or functions don't exist to use import_function and import_module. The ultimate goal is to change regrtest to not skip automatically on ImportError. Checking in now to make sure the buldbots don't show any errors on platforms I can't direct test on.
* remove test_support.TestSkipped and just use unittest.SkipTestBenjamin Peterson2009-03-261-4/+4
|
* Just returning nothing instead of rising TestSkipped, becauseFacundo Batista2008-06-221-1/+5
| | | | it makes the test fail in the trunk.loewis-sun buildbot.
* Trying to see if the problem in Martin's buildot is atFacundo Batista2008-06-221-1/+4
| | | | directory creation time...
* Trying to see if the @ in a path is causing the issue in theFacundo Batista2008-06-221-1/+1
| | | | shutil.rmtree() in the trunk.loewis-sun buildbot.
* Issue #2722. Now the char buffer to support the path string hasFacundo Batista2008-06-221-0/+33
| | | | | not fixed length, it mallocs memory if needed. As a result, we don't have a maximum for the getcwd() method.
* Fix chown on 64-bit linux. It needed to take a long (64-bit on 64bit linux) asGregory P. Smith2008-03-181-0/+28
| | | | | | | | | uid and gid input to accept values >=2**31 as valid while still accepting negative numbers to pass -1 to chown for "no change". Fixes issue1747858. This should be backported to release25-maint.
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+0
|
* Patch #1490190: posixmodule now includes os.chflags() and os.lchflags()Martin v. Löwis2007-02-191-0/+12
| | | | functions on platforms where the underlying system calls are available.
* Correct implementation and documentation of os.confstr. Add a simple testSkip Montanaro2006-04-201-0/+5
| | | | case. I've yet to figure out how to provoke a None return I can test.
* Add tests for posix O_SHLOCK & O_EXLOCK. Missed checking this in withSkip Montanaro2005-06-171-0/+31
| | | | posixmodule.c 2.335. Really should be considered part of patch #1103951.
* Try to improve test coverage for utime()Neal Norwitz2004-06-061-0/+4
|
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-20/+18
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Fix SF bug #697556, test_posix fails: getloginNeal Norwitz2003-03-181-6/+0
| | | | getlogin() can fail for too many reasons, so remove the test
* Fix SF bug #690081, test_posix fails when run in non-interactive modeNeal Norwitz2003-02-231-1/+8
| | | | | Don't bother testing os.getlogin() if we aren't running from a tty (terminal) It fails when run without a tty (e.g., when run from cron).
* Make changes suggested by Walter to use self.assert*() methods.Neal Norwitz2003-02-171-26/+14
|
* test_posix is an expected skip on Win32. Also fixed test_posix toTim Peters2003-02-171-1/+1
| | | | import from test.test_support instead of directly from test_support.
* Added test_posix (hopefully it works on Windows).Neal Norwitz2003-02-171-0/+172
Remove PyArg_ParseTuple() for methods which take no args, use METH_NOARGS instead