summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Patch #2240: Implement signal.setitimer and signal.getitimer.Martin v. Löwis2008-03-241-1/+85
|
* Issue 1681432: Add triangular distribution the random module.Raymond Hettinger2008-03-231-0/+2
|
* #1477: ur'\U0010FFFF' raised in narrow unicode builds.Amaury Forgeot d'Arc2008-03-231-2/+15
| | | | | Corrected the raw-unicode-escape codec to use UTF-16 surrogates in this case, just like the unicode-escape codec.
* Try to prevent the alarm going off early in tearDownNeal Norwitz2008-03-231-1/+1
|
* Suppress failure (to avoid a flaky test) if we cannot connect to svn.python.orgNeal Norwitz2008-03-231-2/+10
|
* Skip the epoll test if epoll() does not workNeal Norwitz2008-03-231-0/+6
|
* Speed up the test by avoiding socket timeouts.Neal Norwitz2008-03-231-3/+5
|
* Try to make this test a little more robust and not fail with:Neal Norwitz2008-03-231-4/+9
| | | | | | | | timeout (10.0025) is more than 2 seconds more than expected (0.001) I'm assuming this problem is caused by DNS lookup. This change does a DNS lookup of the hostname before trying to connect, so the time is not included.
* Simplify demo code.Raymond Hettinger2008-03-231-1/+1
|
* Small fix that complicated the test actually when thatFacundo Batista2008-03-221-4/+10
| | | | test failed.
* Applied patch #1657 epoll and kqueue wrappers for the select moduleChristian Heimes2008-03-214-1/+387
| | | | | The patch adds wrappers for the Linux epoll syscalls and the BSD kqueue syscalls. Thanks to Thomas Herve and the Twisted people for their support and help. TODO: Finish documentation documentation
* Replace hack in regrtest.py with use of sys.py3kwarning.Steven Bethard2008-03-211-7/+2
|
* #2348: add py3k warning for file.softspace.Georg Brandl2008-03-211-0/+10
|
* #2346/#2347: add py3k warning for __methods__ and __members__. Patch by Jack ↵Georg Brandl2008-03-211-0/+10
| | | | Diederich.
* #2358: add py3k warning to sys.exc_clear().Georg Brandl2008-03-211-0/+5
|
* Issue #2432: give DictReader the dialect and line_num attributesGeorg Brandl2008-03-211-10/+12
| | | | advertised in the docs.
* #2136: allow single quotes in realm spec.Georg Brandl2008-03-211-2/+6
|
* Speed test_threading up from 14s to .5s, and avoid a deadlock on certainJeffrey Yasskin2008-03-211-25/+28
| | | | | | | | failures. The test for enumerate-after-join is now a little less rigorous, but the bug it references says the error happened in the first couple iterations, so 100 iterations should still be enough. cProfile was useful for identifying the slow tests here.
* Try to fix test_signal on FreeBSD. I'm assuming that os.kill is failing toJeffrey Yasskin2008-03-211-19/+7
| | | | raise a signal, but switching to subprocess makes the code cleaner anyway.
* Try to fix test_signal breakages on Linux due to r61687. It appears that atJeffrey Yasskin2008-03-211-2/+4
| | | | | | least two of the linux build bots aren't leaving zombie processes around for os.waitpid to wait for, causing ECHILD errors. This would be a symptom of a bug somewhere, but probably not in signal itself.
* Speed up test_signal from ~24s to 4s by avoiding nearly all of the sleep calls.Jeffrey Yasskin2008-03-211-121/+129
|
* Comment how 'from __future__ import print_function' operates in 3.0.Eric Smith2008-03-201-0/+2
|
* Attempt to fix the Solaris Sparc 10 buildbot. It was failing with an invalidGregory P. Smith2008-03-202-28/+30
| | | | | | | | 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.
* Revert r61650; the intent of this commit was to try and address alarm ↵Trent Nelson2008-03-201-4/+1
| | | | failures on some of the build slaves. As Neal points out, it's called after test_main(), so it's not going to factor into the test when run via regrtest.py (and removes the original functionality that Jeffrey wanted that would kill the test if it took longer than 3 seconds to run when executing it directly during development).
* 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.
* Make sure that the warnings filter is not reset or changed beyond the currentBrett Cannon2008-03-192-32/+19
| | | | | | running test file. Closes issue2407. Thanks Jerry Seutter.
* Bump the SIGALM delay from 3 seconds to 20 seconds, mainly in an effort to ↵Trent Nelson2008-03-191-1/+4
| | | | see if it fixes the alarm failures in this test experienced by some of the buildbots.
* The filter() function does support a None argument in Py3.0.Raymond Hettinger2008-03-191-11/+0
|
* Issue 2354: Fix-up compare warning. Patch contributed by Jeff Balogh.Raymond Hettinger2008-03-191-0/+14
|
* Use sys.py3kwarning instead of trying to trigger a Py3k-related warning.Brett Cannon2008-03-191-8/+6
|
* test_nis would fail if test.test_support.verbose was true but NIS was not setBrett Cannon2008-03-191-4/+6
| | | | | | up on the machine. Closes issue2411. Thanks Michael Bishop.
* Trivial typo.Eric Smith2008-03-191-2/+2
|
* Use test.test_support.captured_stdout instead of a custom contextmanager.Eric Smith2008-03-191-13/+1
| | | | Thanks Nick Coghlan.
* Import relimport using a relative import.Martin v. Löwis2008-03-191-1/+1
|
* Issue #2400: Allow relative imports to "import *".Martin v. Löwis2008-03-192-1/+14
|
* Another test for __future__ print_function.Eric Smith2008-03-191-0/+11
|
* Added zip, map, filter to future_bultins (#2171)David Wolever2008-03-192-1/+24
|
* Backport of the print function, using a __future__ import.Eric Smith2008-03-181-0/+129
| | | | | | | | This work is substantially Anthony Baxter's, from issue 1633807. I just freshened it, made a few minor tweaks, and added the test cases. I also created issue 2412, which is to check for 2to3's behavior with the print function. I also added myself to ACKS.
* Add a test to make sure zlib.crc32 and binascii.crc32 return the same thing.Gregory P. Smith2008-03-181-0/+6
| | | | | Fix a buglet in binascii.crc32, the second optional argument could previously have a signedness mismatch with the C variable its going into.
* Add py3k warnings for code and method inequality comparisons. This should ↵Steven Bethard2008-03-181-0/+29
| | | | resolve issue 2373. The codeobject.c and methodobject.c changes are both just backports of the Python 3 code.
* Have regrtest skip test_py3kwarn when the -3 flag is missing.Steven Bethard2008-03-181-0/+8
|
* Import the test properly. This is especially important for py3k.Neal Norwitz2008-03-181-1/+1
|
* Fix test_atexit so that it still passes when -3 is supplied. (It was ↵Steven Bethard2008-03-181-2/+2
| | | | catching the warning messages on stdio from using the reload() function.)
* 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.
* _have_soundcard() is a bad check for winsound.Beep, since you can have a ↵Steven Bethard2008-03-181-17/+19
| | | | soundcard but have the beep driver disabled. This revision basically disables the beep tests by wrapping them in a try/except. The Right Way To Do It is to come up with a _have_enabled_beep_driver() and use that.
* Get regrtest working when re-running testsNeal Norwitz2008-03-181-2/+2
|
* Add py3k warnings for object, type, cell and dict comparisons. This should ↵Steven Bethard2008-03-182-0/+99
| | | | resolve issue2342 and partly resolve issue2373.
* Issue 1577: shutil.move() where destination is a directory was doing aSean Reifscheider2008-03-181-12/+115
| | | | copy, now it is doing a os.rename() if it's on the same file-system.
* Use test_support.unlink instead of os.unlink in tearDown(). (Seems to fix ↵Steven Bethard2008-03-181-1/+1
| | | | an occasional failure in Windows Vista.)
* Fix test_errno to only check for error numbers that are defined by Standard C.Brett Cannon2008-03-181-50/+4
|