summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in xml.dom.pulldom.rstBerker Peksag2016-03-301-1/+3
|\ | | | | | | Reported by Matthew Cole on docs@p.o.
| * Fix typo in xml.dom.pulldom.rstBerker Peksag2016-03-301-1/+3
| | | | | | | | Reported by Matthew Cole on docs@p.o.
* | Issue #26295: Enhanc test_regrtest.test_tools_script_run_tests()Victor Stinner2016-03-301-1/+1
| | | | | | | | Pass all regrtest options, not only --testdir.
* | Issue #26295: Fix test_regrtest.test_tools_buildbot_test()Victor Stinner2016-03-301-1/+1
| | | | | | | | Pass also --testdir option.
* | Issue #26295: test_regrtest now uses a temporary directoryVictor Stinner2016-03-301-27/+28
| | | | | | | | | | | | | | test_forever() stores its state into the builtins module since the test module is reloaded at each run. Remove also warning to detect leaked tests of a previous run.
* | Issue #26295: When using "python3 -m test --testdir=TESTDIR", regrtest doesn'tVictor Stinner2016-03-303-4/+12
| | | | | | | | | | | | add "test." prefix to test module names. regrtest also prepends testdir to sys.path.
* | Merge 3.5 (test_urllibnet)Victor Stinner2016-03-301-1/+1
|\ \ | |/
| * test_urllibnet: set timeout on test_fileno()Victor Stinner2016-03-301-1/+1
| | | | | | | | Use the default timeout of 30 seconds to avoid blocking forever.
* | doctest now supports packagesVictor Stinner2016-03-292-4/+17
| | | | | | | | | | Issue #26641: doctest.DocFileTest and doctest.testfile() now support packages (module splitted into multiple directories) for the package parameter.
* | Merge 3.5 (test_unittest)Victor Stinner2016-03-291-3/+6
|\ \ | |/
| * Fix ResourceWarning in test_unittest when interruptedVictor Stinner2016-03-291-3/+6
| |
* | Null merge 3.5Victor Stinner2016-03-290-0/+0
|\ \ | |/
| * Issue #25911: Backport os._DummyDirEntry fixesVictor Stinner2016-03-291-2/+36
| | | | | | | | | | | | | | | | | | * Fix test_os.BytesWalkTests on Windows * Mimick better the reference os.DirEntry on Windows * _DummyDirEntry now caches os.stat() result * _DummyDirEntry constructor now tries to get os.stat() * Fix os._DummyDirEntry.is_symlink(), don't follow symbolic links: use os.stat(path, follow_symlinks=False).
* | Merge 3.5 (regrtest)Victor Stinner2016-03-291-0/+1
|\ \ | |/
| * Issue #26643: Add missing shutil resources to regrtest.pyVictor Stinner2016-03-291-0/+1
| |
* | Fix os._DummyDirEntry.is_symlink()Victor Stinner2016-03-291-6/+17
| | | | | | | | | | Issue #25911: Fix os._DummyDirEntry.is_symlink(), don't follow symbolic links: use os.stat(path, follow_symlinks=False).
* | fix typo in commentVictor Stinner2016-03-291-1/+1
| | | | | | | | Thanks Arfrever for the report :)
* | Merge 3.5Andrew Svetlov2016-03-291-0/+2
|\ \ | |/
| * Document None as timeout for asyncio.timeout()Andrew Svetlov2016-03-291-0/+2
| |
* | Issue #25314: Merge argparse doc from 3.5Martin Panter2016-03-281-4/+6
|\ \ | |/
| * Issue #25314: store_true and store_false also create appropriate defaults.Raymond Hettinger2011-11-201-4/+6
| |
* | Issue #23804: Merge SSL zero read fix from 3.5Martin Panter2016-03-284-5/+15
|\ \ | |/
| * Issue #23804: Fix SSL recv/read(0) to not return 1024 bytesMartin Panter2016-03-284-5/+15
| |
* | Issue #26130: Remove redundant variable 's' from Parser/parser.cBerker Peksag2016-03-271-5/+4
| | | | | | | | Patch by Oren Milman.
* | Issue #25195: Fix a regression in mock.MagicMockBerker Peksag2016-03-273-0/+24
|\ \ | |/ | | | | | | | | | | _Call is a subclass of tuple (changeset 3603bae63c13 only works for classes) so we need to implement __ne__ ourselves. Patch by Andrew Plummer.
| * Issue #25195: Fix a regression in mock.MagicMockBerker Peksag2016-03-273-0/+24
| | | | | | | | | | | | | | _Call is a subclass of tuple (changeset 3603bae63c13 only works for classes) so we need to implement __ne__ ourselves. Patch by Andrew Plummer.
* | Issue #23758: Improve num_params docs of create_{function,aggregate} functionsBerker Peksag2016-03-272-3/+36
|\ \ | |/ | | | | | | | | | | | | If you pass -1, the callable can take any number of arguments. Added tests to verify the behavior. Initial patch by Cédric Krier.
| * Issue #23758: Improve num_params docs of create_{function,aggregate} functionsBerker Peksag2016-03-272-3/+36
| | | | | | | | | | | | | | | | If you pass -1, the callable can take any number of arguments. Added tests to verify the behavior. Initial patch by Cédric Krier.
* | Document sqlite3.Cursor.close()Berker Peksag2016-03-271-0/+6
|\ \ | |/ | | | | | | | | | | The behaviour of the close method is tested by ClosedCurTests in Lib/sqlite3/test/dbapi.py. This is basically a backport of https://github.com/ghaering/pysqlite/issues/73.
| * Document sqlite3.Cursor.close()Berker Peksag2016-03-271-0/+6
| | | | | | | | | | | | | | The behaviour of the close method is tested by ClosedCurTests in Lib/sqlite3/test/dbapi.py. This is basically a backport of https://github.com/ghaering/pysqlite/issues/73.
* | regrtest: round final timing towards +infVictor Stinner2016-03-271-3/+8
| |
* | sqlite3 documentation: Connection.iterdump() is a methodBerker Peksag2016-03-271-2/+2
|\ \ | |/
| * sqlite3 documentation: Connection.iterdump() is a methodBerker Peksag2016-03-271-2/+2
| |
* | Issue #26644: Merge SSL negative read fix from 3.5Martin Panter2016-03-273-0/+19
|\ \ | |/
| * Issue #26644: Raise ValueError for negative SSLSocket.recv() and read()Martin Panter2016-03-273-0/+19
| |
* | Moved misplaced functions to the section for C API functions.Raymond Hettinger2016-03-271-12/+12
| |
* | Issue #25940: Use internal local server more in test_sslMartin Panter2016-03-276-375/+378
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move many tests from NetworkedTests and NetworkedBIOTests to a new Simple- BackgroundTests class, using the existing ThreadedEchoServer and SIGNED_ CERTFILE infrastructure. For tests that cause the server to crash by rejecting its certificate, separate them into independent test methods. Added custom root certificate to capath with the following commands: cp Lib/test/{pycacert.pem,capath/} # Edit copy to remove part before certificate c_rehash -v Lib/test/capath/ c_rehash -v -old Lib/test/capath/ # Note the generated file names cp Lib/test/capath/{pycacert.pem,b1930218.0} mv Lib/test/capath/{pycacert.pem,ceff1710.0} Change to pure PEM version of SIGNING_CA because PEM_cert_to_DER_cert() does not like the extra text at the start. Moved test_connect_ex_error() into BasicSocketTests and rewrote it to connect to a reserved localhost port. NetworkedTests.test_get_server_certificate_ipv6() split out because it needs to connect to an IPv6 DNS address. The only reference left to self-signed.pythontest.net is test_timeout_ connect_ex(), which needs a remote server to reliably time out the connection, but does not rely on the server running SSL. Made ThreadedEchoServer call unwrap() by default when it sees the client has shut the connection down, so that the client can cleanly call unwrap().
* | Responsibility for argument checking belongs in set.__init__() rather than ↵Raymond Hettinger2016-03-261-3/+0
| | | | | | | | | | | | | | set.__new__(). See dict.__new__() and list.__new__() for comparison. Neither of those examine or touch args or kwds. That work is done in the __init__() methods.
* | Minor code cleanup for PyArg_UnpackTuple.Raymond Hettinger2016-03-261-9/+8
| |
* | Issue #25911: more info on test_os failureVictor Stinner2016-03-261-1/+1
| |
* | makeopcodetargets.py: we need to import Lib/opcode.pyVictor Stinner2016-03-261-1/+21
| | | | | | | | | | | | | | | | | | Issue #20021: use importlib.machinery to import Lib/opcode.py and not an opcode module coming from somewhere else. makeopcodetargets.py is part of the Python build process and it is run by an external Python program, not the built Python program. Patch written by Serhiy Storchaka.
* | Null merge 3.5Victor Stinner2016-03-250-0/+0
|\ \ | |/
| * _pickle: Fix load_counted_tuple(), use Py_ssize_t for sizeVictor Stinner2016-03-141-1/+1
| | | | | | | | Fix a warning on Windows 64-bit.
* | Fix test_os.test_symlink(): remove create symlinkVictor Stinner2016-03-251-0/+2
| |
* | mergeAlexander Belopolsky2016-03-253-1/+16
|\ \ | |/
| * Issue#26616:Fixed a bug in datetime.astimezone() method.Alexander Belopolsky2016-03-253-1/+16
| |
* | Backed out changeset 245a16f33c4bVictor Stinner2016-03-251-279/+202
| | | | | | | | Serhiy asked me to review it.
* | Rework libregrtest.save_envVictor Stinner2016-03-251-202/+279
| | | | | | | | | | | | | | | | | | | | | | * Replace get/restore methods with a Resource class and Resource subclasses * Create ModuleAttr, ModuleAttrList and ModuleAttrDict helper classes * Use __subclasses__() to get resource classes instead of using an hardcoded list (2 shutil resources were missinged in the list!) * Don't define MultiprocessingProcessDangling resource if the multiprocessing module is missing * Nicer diff for dictionaries. Useful for the big os.environ dict * Reorder code to group resources
* | changeset: 100749:0b61b2d28a07Victor Stinner2016-03-251-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | tag: tip parent: 100742:ebae81b31cf6 user: Victor Stinner <victor.stinner@gmail.com> date: Fri Mar 25 15:03:34 2016 +0100 files: Lib/test/test_os.py description: test_os: Win32ErrorTests checks if file exists Don't use os.path.exists() since it ignores *any* OSError.
* | Merge 3.5Victor Stinner2016-03-251-2/+3
|\ \ | |/