summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Restore test that was using pysetup and can now (#15157) use pydocÉric Araujo2012-06-241-0/+4
|
* Fix test to really run behind a NNTP virus checkerAntoine Pitrou2012-06-241-2/+5
|
* Remove debug output from test_shutilHynek Schlawack2012-06-241-2/+0
|
* Issue #15061: Re-implemented hmac.compare_digest() in CChristian Heimes2012-06-241-5/+76
|
* Issue #15118: Change return value of os.uname() and os.times() fromLarry Hastings2012-06-243-5/+4
| | | | | plain tuples to immutable iterable objects with named attributes (structseq objects).
* Closes #15161: add support for giving path as a fd for truncate() and ↵Georg Brandl2012-06-241-0/+2
| | | | pathconf().
* In random's test_seedargs: Make sure to include at least one seed object ↵Mark Dickinson2012-06-241-1/+5
| | | | with a negative hash.
* #15160: Extend the new email parser to handle MIME headers.R David Murray2012-06-243-15/+905
| | | | | | | | | | | | | | | | | | | | | | | This code passes all the same tests that the existing RFC mime header parser passes, plus a bunch of additional ones. There are a couple of commented out tests where there are issues with the folding. The folding doesn't normally get invoked for headers parsed from source, and the cases are marginal anyway (headers with invalid binary data) so I'm not worried about them, but will fix them after the beta. There are things that can be done to make this API even more convenient, but I think this is a solid foundation worth having. And the parser is a full RFC parser, so it handles cases that the current parser doesn't. (There are also probably cases where it fails when the current parser doesn't, but I haven't found them yet ;) Oh, yeah, and there are some really ugly bits in the parser for handling some 'postel' cases that are unfortunately common. I hope/plan to to eventually refactor a lot of the code in the parser which should reduce the line count...but there is no escaping the fact that the error recovery is welter of special cases.
* Fix whitespaceHynek Schlawack2012-06-241-3/+3
|
* Packaging removal: also revert introduction of sysconfig.cfg.Éric Araujo2012-06-242-17/+16
| | | | | | | We need a discussion to define what should be customized how; this new config file is premature. It was added to serve the needs of the resources system in install_data / packaging.database, so it can be removed alongside packaging for 3.3.
* merge headsGregory P. Smith2012-06-241-2/+2
|\
| * Issue #4489: Rename the feature marker for the symlink resistant rmtree and ↵Nick Coghlan2012-06-241-2/+2
| | | | | | | | store it as a function attribute
* | Fixes issue #12268: File readline, readlines and read() or readall() methodsGregory P. Smith2012-06-242-5/+241
|\ \ | |/ |/| | | | | | | no longer lose data when an underlying read system call is interrupted. IOError is no longer raised due to a read system call returning EINTR from within these methods.
| * Fixes issue #12268: File readline, readlines and read() or readall() methodsGregory P. Smith2012-06-241-0/+236
| | | | | | | | | | | | no longer lose data when an underlying read system call is interrupted. IOError is no longer raised due to a read system call returning EINTR from within these methods.
| * Speed up test_io by >2x by reducing the sleep time using setitimer instead ofGregory P. Smith2012-06-241-5/+5
| | | | | | | | alarm for the signal tests.
* | Remove packaging from the standard library.Éric Araujo2012-06-243-50/+0
| | | | | | | | | | | | Distutils2 will live on on PyPI and be included in the stdlib when it is ready. See discussion starting at http://mail.python.org/pipermail/python-dev/2012-June/120430.html
* | Issue #15154: Add "dir_fd" parameter to os.rmdir, remove "rmdir"Larry Hastings2012-06-231-1/+4
| | | | | | | | | | | | | | parameter from os.remove / os.unlink. Patch written by Georg Brandl. (I'm really looking forward to George getting commit privileges so I don't have to keep doing checkins on his behalf.)
* | Errors in "client" methods in test_socket were ignored because of a bogus ↵Antoine Pitrou2012-06-231-1/+2
| | | | | | | | | | | | except clause. (this could reveal test failures!)
* | Lower test-skipping threshold in test_reprlibAntoine Pitrou2012-06-231-1/+1
| |
* | Avoid depending on directory iteration order in test_shutilAntoine Pitrou2012-06-231-6/+5
| |
* | Add debug output to test_shutilAntoine Pitrou2012-06-231-0/+2
| |
* | Proper cleanup in test_shutil, even in case of error.Antoine Pitrou2012-06-231-8/+6
| |
* | #4489: Fix usage of fd-based functions to new api introduced earlier todayHynek Schlawack2012-06-231-2/+21
| | | | | | | | | | | | | | | | Also add an explicit test for safe implementation usage on supported platforms. As a side effect, this commit adds a module-level attribute 'rmtree_is_safe' which offers introspection whether the current rmtree implementation is safe against symlink attacks.
* | Properly test the various builtins lookup cases in inspect.getclosurevarsNick Coghlan2012-06-231-0/+24
| |
* | #4489: Add a shutil.rmtree that isn't suspectible to symlink attacksHynek Schlawack2012-06-231-18/+45
| | | | | | | | | | It is used automatically on platforms supporting the necessary os.openat() and os.unlinkat() functions. Main code by Martin von Löwis.
* | Use non-deprecated speling.Antoine Pitrou2012-06-231-44/+44
| |
* | Properly cleanup pep3147 modules in test_importAntoine Pitrou2012-06-231-4/+4
| |
* | Try to further debug occasional buildbot failureAntoine Pitrou2012-06-231-0/+6
| |
* | #15114: the strict mode of HTMLParser and the HTMLParseError exception are ↵Ezio Melotti2012-06-231-2/+4
| | | | | | | | deprecated now that the parser is able to parse invalid markup.
* | Issue #3665: \u and \U escapes are now supported in unicode regular expressions.Antoine Pitrou2012-06-231-15/+83
| | | | | | | | Patch by Serhiy Storchaka.
* | Close #15153: Added inspect.getgeneratorlocals to simplify whitebox testing ↵Nick Coghlan2012-06-231-0/+46
| | | | | | | | of generator state updates
* | Close #13062: Add inspect.getclosurevars to simplify testing stateful closuresNick Coghlan2012-06-231-1/+100
| |
* | Issue #14742: test_unparse now only checks a limited number of files unless ↵Mark Dickinson2012-06-231-0/+1
| | | | | | | | the 'cpu' resource is specified.
* | fixed whitespaceAlexander Belopolsky2012-06-231-1/+1
| |
* | Issues #11024: Fixes and additional tests for Time2Internaldate.Alexander Belopolsky2012-06-231-9/+25
| |
* | Skip the test only if neccesary - Kernel bug in freebsd9 - #10142: Support ↵Jesus Cea2012-06-231-2/+2
| | | | | | | | for SEEK_HOLE/SEEK_DATA
* | Kernel bug in freebsd9 - #10142: Support for SEEK_HOLE/SEEK_DATAJesus Cea2012-06-231-0/+3
| |
* | Issue #14626: Fix buildbot issues on FreeBSD (AMD64). (Fingers crossed.)Larry Hastings2012-06-232-2/+7
| |
* | Issue #14626: Large refactoring of functions / parameters in the os module.Larry Hastings2012-06-224-208/+200
| | | | | | | | | | | | | | | | | | Many functions now support "dir_fd" and "follow_symlinks" parameters; some also support accepting an open file descriptor in place of of a path string. Added os.support_* collections as LBYL helpers. Removed many functions only previously seen in 3.3 alpha releases (often starting with "f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka; implemented by Larry Hastings.
* | Fix silly mistake in debugging codeAntoine Pitrou2012-06-221-1/+1
| |
* | Issue #15008: Implement PEP 362 "Signature Objects".Larry Hastings2012-06-221-1/+922
| | | | | | | | Patch by Yury Selivanov.
* | Add debug output for temporary buildbot failuresAntoine Pitrou2012-06-221-1/+3
| |
* | Issue #444582: shutil.which() respects relative paths.Antoine Pitrou2012-06-221-0/+10
| |
* | Fix #444582. Add shutil.which function for finding programs on the system path.Brian Curtin2012-06-221-1/+44
| |
* | mergeAlexander Belopolsky2012-06-221-19/+21
|\ \
| * | Issue #14769: Incorporated mildly pedantic feedback from python-dev.Larry Hastings2012-06-221-19/+21
| | | | | | | | | | | | | | | Mostly documentation changes; the code changes are clarifications, not semantic changes.
* | | Issue #9527: tm_gmtoff has 'correct' sign.Alexander Belopolsky2012-06-221-2/+4
|/ /
* | MergeAntoine Pitrou2012-06-221-0/+6
|\ \
| * | Issue #14785: Add sys._debugmallocstats() to help debug low-level memory ↵David Malcolm2012-06-221-0/+6
| | | | | | | | | | | | allocation issues
* | | Issue #14837: SSL errors now have `library` and `reason` attributes ↵Antoine Pitrou2012-06-221-2/+43
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | describing precisely what happened and in which OpenSSL submodule. The str() of a SSLError is also enhanced accordingly. NOTE: this commit creates a reference leak. The leak seems tied to the use of PyType_FromSpec() to create the SSLError type. The leak is on the type object when it is instantiated: >>> e = ssl.SSLError() >>> sys.getrefcount(ssl.SSLError) 35 >>> e = ssl.SSLError() >>> sys.getrefcount(ssl.SSLError) 36 >>> e = ssl.SSLError() >>> sys.getrefcount(ssl.SSLError) 37