summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fcntl.py
Commit message (Collapse)AuthorAgeFilesLines
* #18798: fix typo in test_fcntl. Patch by Vajrasky Kok.Ezio Melotti2013-08-231-1/+1
|
* Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-0/+21
| | | | | | | when result of PyInt_AsLong() or PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
* Issue #12821: Fix test_fcntl failures on OpenBSD 5.Charles-François Natali2011-08-231-6/+2
|
* remove the svn:executable property from files that don't have shebang linesBenjamin Peterson2010-03-051-0/+0
|
* Issue #1309352: fcntl now converts its third arguments to a C `long` ratherAntoine Pitrou2009-05-241-1/+16
| | | | | than an int, which makes some operations possible under 64-bit Linux (e.g. DN_MULTISHOT with F_NOTIFY).
* A few more test skips via import_module, and change import_module toR. David Murray2009-03-311-2/+6
| | | | | | | return the error message produced by importlib, so that if an import in the package whose import is being wrapped is what failed the skip message will contain the name of that module instead of the name of the wrapped module. Also fixed formatting of some previous comments.
* Attempt to fix the Solaris Sparc 10 buildbot. It was failing with an invalidGregory P. Smith2008-03-201-28/+1
| | | | | | | | argument error on ioctl. This was caused by the added test_fcntl ioctl test that hard coded 0 as the fd to use. Without a terminal, this fails on solaris. (it passed from the command line on sol 10, both 32 and 64 bit) Also, test_ioctl exists so I moved the test into there where it belongs.
* Prevent ioctl op codes from being sign extended from int to unsigned longGregory P. Smith2008-03-191-1/+28
| | | | | | | | | | | when used on platforms that actually define ioctl as taking an unsigned long. (the BSDs and OS X / Darwin) Adds a unittest for fcntl.ioctl that tests what happens with both positive and negative numbers. This was done because of issue1471 but I'm not able to reproduce -that- problem in the first place on Linux 32bit or 64bit or OS X 10.4 & 10.5 32bit or 64 bit.
* Convert test_fcntl to unittest.Brett Cannon2008-03-131-63/+83
| | | | Closes issue #2055. Thanks Giampaolo Rodola.
* Enable platform-specific tweaks for FreeBSD 8 (exactly same to FreeBSD 7's yet)Hye-Shik Chang2007-10-281-1/+1
|
* Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34].Neal Norwitz2006-09-051-1/+1
|
* Make test_fcntl aware of netbsd3.Georg Brandl2006-06-211-3/+4
|
* Bug #1101233: fix test_fcntl on netbsd2 platform.Georg Brandl2006-02-201-1/+1
|
* Add support for FreeBSD 7.Hye-Shik Chang2005-07-171-0/+1
|
* Fix testcase for 64bit BSD systems: long is 8 bytes for those systemsHye-Shik Chang2005-04-041-2/+8
| | | | so there's no need to pad after off_t members. And a small typo fix.
* Add support for FreeBSD 6.Hye-Shik Chang2004-08-181-1/+1
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-2/+2
| | | | From SF patch #852334.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Patch #488073: AtheOS port.Martin v. Löwis2002-06-111-0/+3
|
* SF 554663. Add OpenBSD3. Bugfix candidate if anyone cares.Guido van Rossum2002-05-131-1/+1
|
* OS/2 EMX port Library and regression test changes:Andrew MacIntyre2002-02-241-7/+12
| | | | | | | | | | | Lib/ os.py os2emxpath.py // added - OS/2 EMX specific path manipulation routines popen2.py site.py Lib/test/ test_fcntl.py test_longexp.py
* sys.platform on Mac OS X is now "darwin", without any version number appended.Jack Jansen2001-12-051-1/+1
| | | | This should probably go into NEWS (who's responsible for that?).
* Assume a 64-bit start and len if O_LARGEFILE is available.Martin v. Löwis2001-10-181-1/+8
|
* Update the tests for the fcntl module to check passing in file objects,Fred Drake2001-05-091-11/+21
| | | | and using the constants defined there instead of FCNTL.
* Unixware 7 support by Billy G. Allie (SF patch 413011)Guido van Rossum2001-04-111-1/+1
|
* Based on info from Jens@digicool.com, add 'darwin1' to the list ofGuido van Rossum2001-03-281-1/+1
| | | | BSD-style OS'es. Makes sense, really.
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-171-1/+1
| | | | 'verify' iff it's used by a test module...
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-1/+1
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-2/+2
|
* Use test_support.TESTFN as the temporary filename.Fred Drake2000-10-181-3/+3
| | | | | | Fix a minor stylistic nit. This closes SourceForge bug #117032.
* Anonymous patch to add Darwin 1.2 to the list of BSDs.Guido van Rossum2000-10-121-1/+1
| | | | | | | Let's hope this is correct (I'm not sure why the sys.platform would be 'Darwin1.2' rather than 'darwin1', which seems to be the convention). Someone with Darwin please test this!
* HP-UX is another one of those platforms using an alternative lockGuido van Rossum2000-09-261-1/+1
| | | | structure (same as AIX).
* Add support for FreeBSD-[45].Guido van Rossum2000-08-291-1/+1
| | | | -- tg@FreeBSD.org
* Daniel Neri: OpenBSD is just as BSD'ish as the other BSD's ;-)Guido van Rossum1999-04-191-1/+2
|
* According to Jeffrey Honig, bsd/os 4.0 should be added to the list.Guido van Rossum1999-02-231-1/+3
|
* Guess what -- BSD has bifurcated again. :-(Guido van Rossum1998-08-111-1/+1
|
* Support for netbsd1 and freebsd3, after suggestions by Anders AndersenGuido van Rossum1997-12-021-2/+7
| | | | and Jacques Vidrine.
* Finally found a wat to set a file nonblocking that works on Irix,Guido van Rossum1997-05-121-2/+2
| | | | Solaris and Linux: use os.O_NONBLOCK.
* Fix the NDELAY test; avoid outputting binary garbage.Guido van Rossum1997-05-091-3/+3
|
* Many scripts, but small changes. Update the way the scripts obtain theRoger E. Masse1996-12-201-4/+1
| | | | | | | | | | | | | | | | 'verbose' flag ala GvR updated test harness architecture. Old way: verbose = 0 if __name__ == '__main__': verbose = 1 New way: from test_support import verbose Some other small readablility and functionality updates.
* Added a test script for the fcntl C module.Roger E. Masse1996-12-171-0/+31