7653c3806c8a19a8e3e86c21d8679008a6a15afa |
|
03-Dec-2016 |
Serhiy Storchaka <storchaka@gmail.com> |
Try to fix test.test_support.rmtree() on Windows for fixing issue28847 tests.
/external/python/cpython2/Lib/test/test_support.py
|
398bc765750386a25a280c329d61578ad665add9 |
|
21-Nov-2016 |
Martin Panter <vadmium+py@gmail.com> |
Issue #28666: Fix stat import
/external/python/cpython2/Lib/test/test_support.py
|
d54d327f1c91c905f4c4efdb937a2cd745771c78 |
|
20-Nov-2016 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #28666: Fix removing readonly directories on Windows.
/external/python/cpython2/Lib/test/test_support.py
|
f0d0306c24f0de1c18f56b8e3a0a77ab3450c83f |
|
20-Nov-2016 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #28666: Now test.test_support.rmtree is able to remove unwritable or unreadable directories on Windows too.
/external/python/cpython2/Lib/test/test_support.py
|
b7c057a143d94cd77443d35c70bc6e47b211617c |
|
20-Nov-2016 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #28666: Now test.support.rmtree is able to remove unwritable or unreadable directories.
/external/python/cpython2/Lib/test/test_support.py
|
ef2020f63421c896dc9ed58d09f5b402f36789e2 |
|
05-Sep-2016 |
Terry Jan Reedy <tjreedy@udel.edu> |
Issue #27918# test.resource.is_gui_available no longer flashes tk window. Also, don't run it if 'gui' is not requested. Patch by Xiang Zhang.
/external/python/cpython2/Lib/test/test_support.py
|
b362f75f6e5d8fe21d0cda740f9dcdf1976091f7 |
|
02-Nov-2015 |
Martin Panter <vadmium+py@gmail.com> |
Issue #25523: Correct "a" article to "an" article This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed to fix the grammar.
/external/python/cpython2/Lib/test/test_support.py
|
14a7d6389fb453cca18d61bbe39deff7062bc66f |
|
30-Mar-2016 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #26494: Fixed crash on iterating exhausting iterators. Affected classes are generic sequence iterators, iterators of bytearray, list, tuple, set, frozenset, dict, OrderedDict and corresponding views.
/external/python/cpython2/Lib/test/test_support.py
|
ab68fcaee3c39ad21cf3a62f6d299e79a2c1fd56 |
|
03-Dec-2015 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #6478: _strptime's regexp cache now is reset after changing timezone with time.tzset().
/external/python/cpython2/Lib/test/test_support.py
|
f29ab72162d9bec16c482e4657119135d933825b |
|
08-Sep-2015 |
Serhiy Storchaka <storchaka@gmail.com> |
Don't encode unicode dirname in test_support.temp_cwd() if unicode file names are supported by the filesystem. On Windows the encoding can convert some characters to '?' that is not legal in file name.
/external/python/cpython2/Lib/test/test_support.py
|
7c7b4b5d8664a240a8472e8275cf0e8ae2f3b19e |
|
06-Sep-2015 |
Serhiy Storchaka <storchaka@gmail.com> |
Backport support.change_cwd() and use it in tests.
/external/python/cpython2/Lib/test/test_support.py
|
bd8c629eb54860df775f0072f4cf5fbd23dededb |
|
31-Mar-2015 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #23799: Added test.test_support.start_threads() for running and cleaning up multiple threads.
/external/python/cpython2/Lib/test/test_support.py
|
9e52735d22a431d5c043a0c6eae13e9ae73c372f |
|
17-Mar-2015 |
Ned Deily <nad@acm.org> |
Issue #23458: Skip test_urandom_fd_non_inheritable on OS X 10.4 since FD_CLOEXEC is not supported there.
/external/python/cpython2/Lib/test/test_support.py
|
f7363ed8ef8e3a7a8f5d3f39e244c1b8e14d9005 |
|
25-Nov-2014 |
Benjamin Peterson <benjamin@python.org> |
use more ugly but hopefully more robust method
/external/python/cpython2/Lib/test/test_support.py
|
69a64d3fc21f173211ee2139a718bc8869abf2f1 |
|
25-Nov-2014 |
Benjamin Peterson <benjamin@python.org> |
handle errors without a reason attribute
/external/python/cpython2/Lib/test/test_support.py
|
f671de4dd4b3c8fd124f45e863b4f07ffc1c9179 |
|
25-Nov-2014 |
Benjamin Peterson <benjamin@python.org> |
don't fail tests when www.python.org can't be validated by the system
/external/python/cpython2/Lib/test/test_support.py
|
33db23f53cd39b3e3f6b9b526601a85879abbcc5 |
|
02-Nov-2014 |
Ned Deily <nad@acm.org> |
Issue #22770: Prevent some Tk segfaults on OS X when running gui tests. When running tests in subprocesses with the regrtest -j option, a bug in Cocoa Tk can result in a Tcl segfault. Avoid the problem by forcing Tk to fully initialize as an OS X gui process before destroying the Tcl instance and creating another. (Original patch by Serhiy Storchaka)
/external/python/cpython2/Lib/test/test_support.py
|
68482fb53b728f768b53f8f0be34b3c2bb1c779b |
|
20-Aug-2014 |
Benjamin Peterson <benjamin@python.org> |
expect socket.error instead of the py3ism OSError
/external/python/cpython2/Lib/test/test_support.py
|
daeb925cc88cc8fed2030166ade641de28edb396 |
|
20-Aug-2014 |
Benjamin Peterson <benjamin@python.org> |
backport many ssl features from Python 3 (closes #21308) A contribution of Alex Gaynor and David Reid with the generous support of Rackspace. May God have mercy on their souls.
/external/python/cpython2/Lib/test/test_support.py
|
fdfe9fce8ca667bba06b1b1a657f722fd9511562 |
|
16-Jul-2014 |
Serhiy Storchaka <storchaka@gmail.com> |
Add helpers for testing unicode disabled builds.
/external/python/cpython2/Lib/test/test_support.py
|
9ce635f7bde6a0e61737af87a3546de6fe55880a |
|
02-Jun-2014 |
Zachary Ware <zachary.ware@gmail.com> |
Issue #18492: Allow all resources when tests are not run by regrtest.py. This changeset also includes cleanup allowed by this behavior change.
/external/python/cpython2/Lib/test/test_support.py
|
47e4b0bedb63fdcff29deb657930043c96235983 |
|
24-May-2014 |
Ned Deily <nad@acm.org> |
Issue #18604: Skip the Tk instantiation test on OS X because it can cause GUI tests to segfault in Cocoa Tk when run under regrtest -j (multiple threads running subprocesses).
/external/python/cpython2/Lib/test/test_support.py
|
2460dc880f9d8df0ddbc77790dfd68767e481527 |
|
02-May-2014 |
Zachary Ware <zachary.ware@gmail.com> |
Issue #18604: Consolidated checks for GUI availability. test_support._is_gui_available is now defined the same way on every platform, and now includes the Windows-specific check that had been in the Windows version of _is_gui_available and the OSX-specific check that was in runtktests.check_tk_availability. Also, every platform checks whether Tk can be instantiated (if the platform-specific checks passed).
/external/python/cpython2/Lib/test/test_support.py
|
2ac9d3110898a1cfc779dd436f05cd6ac231cbb3 |
|
19-Feb-2014 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #6815: os.path.expandvars() now supports non-ASCII Unicode environment variables names and values.
/external/python/cpython2/Lib/test/test_support.py
|
76249ea4a7ab1cb0fa41d967b2fb8975916cb955 |
|
07-Feb-2014 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #20532: Tests which use _testcapi now are marked as CPython only.
/external/python/cpython2/Lib/test/test_support.py
|
d82634d606583d7e2a55f57be70882a77aba5171 |
|
25-Nov-2013 |
Gregory P. Smith <greg@krypto.org> |
Fix test.test_support.bind_port() to not cause an error when Python was compiled on a system with SO_REUSEPORT defined in the headers but run on a system with an OS kernel that does not support that new socket option.
/external/python/cpython2/Lib/test/test_support.py
|
14b38f58c20c541947c4a7ebfecbe74933bd9f85 |
|
04-Nov-2013 |
Zachary Ware <zachary.ware@gmail.com> |
Issue #17883: Backport test.test_support._is_gui_available() This should stop the Windows buildbots from hanging on test_ttk_guionly.
/external/python/cpython2/Lib/test/test_support.py
|
5aac8b7c2cecd636004f32ec5d7c5a4331fddb17 |
|
29-Aug-2013 |
Charles-François Natali <cf.natali@gmail.com> |
Issue #18643: Fix some test_socket failures due to large default socket buffer sizes.
/external/python/cpython2/Lib/test/test_support.py
|
78254dc6fc71d28f70c52dd70c0bc3e14ae7d0c2 |
|
22-Aug-2013 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #18792: Use "127.0.0.1" or "::1" instead of "localhost" as much as possible, since "localhost" goes through a DNS lookup under recent Windows versions.
/external/python/cpython2/Lib/test/test_support.py
|
5dd99ebbc25ac0e182cb00ac4c67aef8d32a6755 |
|
17-Aug-2013 |
Ezio Melotti <ezio.melotti@gmail.com> |
#18741: fix more typos. Patch by Févry Thibault.
/external/python/cpython2/Lib/test/test_support.py
|
68915d75108e924d1ff74e707444c0d3ab405186 |
|
24-Apr-2013 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #17835: Fix test_io when the default OS pipe buffer size is larger than one million bytes.
/external/python/cpython2/Lib/test/test_support.py
|
acb6e85808ec2a4522c1e7cf665c85c02edf16ab |
|
20-Mar-2013 |
Kristján Valur Jónsson <sweskman@gmail.com> |
Issue #12098 : Fix a missing import in the unittests.
/external/python/cpython2/Lib/test/test_support.py
|
8927e8f4211dc50b87a6365ed7281452a1931ebf |
|
19-Mar-2013 |
Kristján Valur Jónsson <sweskman@gmail.com> |
Issue #12098: multiprocessing on Windows now starts child processes using the same sys.flags as the current process. Backport from default branch.
/external/python/cpython2/Lib/test/test_support.py
|
34fe1b7a3db61ee1b92f495488b08532b6126450 |
|
12-Feb-2013 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #5308: Raise ValueError when marshalling too large object (a sequence with size >= 2**31), instead of producing illegal marshal data.
/external/python/cpython2/Lib/test/test_support.py
|
0127de0b877600a95871e07aee8a092e9199002a |
|
12-Feb-2013 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #16800: tempfile.gettempdir() no longer left temporary files when the disk is full. Original patch by Amir Szekely.
/external/python/cpython2/Lib/test/test_support.py
|
72121c6c302d0e177d3f738f51685e0664343ccc |
|
27-Jan-2013 |
Serhiy Storchaka <storchaka@gmail.com> |
- Issue #17041: Fix testing when Python is configured with the --without-doc-strings option.
/external/python/cpython2/Lib/test/test_support.py
|
4216aa1e52380ecc17566d0c60cac51834cfb22c |
|
26-Jan-2013 |
Stefan Krah <skrah@bytereef.org> |
Adapt test for build --without-doc-strings.
/external/python/cpython2/Lib/test/test_support.py
|
bc77d3690b4b0c9dbb8a00b15cfea74c4bdb134f |
|
14-Aug-2012 |
Brian Curtin <brian@python.org> |
Fix #15496. Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth
/external/python/cpython2/Lib/test/test_support.py
|
c02e1e65c45753dafc7ae1b6c0b120323b2a10b7 |
|
29-Jul-2012 |
Martin v. Löwis <martin@v.loewis.de> |
Issue #15467: Move helpers for __sizeof__ tests into test_support. Patch by Serhiy Storchaka.
/external/python/cpython2/Lib/test/test_support.py
|
ed04f42b9916e89c65820eb236ab347323d983e0 |
|
26-Jun-2012 |
Antoine Pitrou <solipsis@pitrou.net> |
Try to fix failure of a Windows buildbot to capture name resolution errors.
/external/python/cpython2/Lib/test/test_support.py
|
ed11a5d018e3fc234d7126832756a15c1af67d22 |
|
20-May-2012 |
Martin v. Löwis <martin@v.loewis.de> |
Issue #8767: Restore building with --disable-unicode. Original patch by Stefano Taschini.
/external/python/cpython2/Lib/test/test_support.py
|
aee9dfba4a9230f2832dd69d67e92f8e0490a163 |
|
21-Feb-2012 |
Benjamin Peterson <benjamin@python.org> |
merge 2.6 with hash randomization fix
|
1e13eb084f72d5993cbb726e45b36bdb69c83a24 |
|
21-Feb-2012 |
Barry Warsaw <barry@python.org> |
- Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED environment variable, to provide an opt-in way to protect against denial of service attacks due to hash collisions within the dict and set types. Patch by David Malcolm, based on work by Victor Stinner.
/external/python/cpython2/Lib/test/test_support.py
|
97c9428c9105048fb062ac97f5542294692ab701 |
|
10-Dec-2011 |
Charles-François Natali <neologix@free.fr> |
Issue #13453: Catch EAI_FAIL in support.transient_internet.
/external/python/cpython2/Lib/test/test_support.py
|
4a4a0fed0797b641d2a980cc1b8ef4c77bbae9b5 |
|
09-Jul-2011 |
Antoine Pitrou <solipsis@pitrou.net> |
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary failure in name resolution. Should fix a buildbot failure.
/external/python/cpython2/Lib/test/test_support.py
|
e9b185f26318e7ff34bd8ec36a509cd85106d696 |
|
01-Jun-2011 |
Victor Stinner <victor.stinner@haypocalc.com> |
Issue #12085: Fix test_subprocess for my previous commit Replace support by test_support, and add captured_stderr() function.
/external/python/cpython2/Lib/test/test_support.py
|
4dcb7be696f79766297e579b8d0aea87c5218e49 |
|
14-May-2011 |
Ezio Melotti <ezio.melotti@gmail.com> |
#7960: fix docstrings for captured_output and captured_stdout.
/external/python/cpython2/Lib/test/test_support.py
|
e3992eb7430101f5bc6725d5f74290777a2ef939 |
|
14-May-2011 |
Ezio Melotti <ezio.melotti@gmail.com> |
#5723: Improve json tests to be executed with and without accelerations.
/external/python/cpython2/Lib/test/test_support.py
|
720f8dea196640a053135f31be89b652d685e55c |
|
14-May-2011 |
Ezio Melotti <ezio.melotti@gmail.com> |
Change import_fresh_module to work with packages.
/external/python/cpython2/Lib/test/test_support.py
|
193c34ba86bbe5b0c35c66d1edc89e69fed31391 |
|
09-May-2011 |
Ezio Melotti <ezio.melotti@gmail.com> |
#11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported.
/external/python/cpython2/Lib/test/test_support.py
|
01c9a160310b9456391a008e1bd8da701f0f0241 |
|
08-May-2011 |
Benjamin Peterson <benjamin@python.org> |
import_fresh_module ought to be in __all__
/external/python/cpython2/Lib/test/test_support.py
|
d43245a965dc83db34063b22071fde143b81a490 |
|
08-Jan-2011 |
Antoine Pitrou <solipsis@pitrou.net> |
Merged revisions 87861,87863 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87861 | antoine.pitrou | 2011-01-08 11:23:29 +0100 (sam., 08 janv. 2011) | 3 lines Fix test_ssl after r87849 ........ r87863 | antoine.pitrou | 2011-01-08 11:28:11 +0100 (sam., 08 janv. 2011) | 3 lines Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet(). ........
/external/python/cpython2/Lib/test/test_support.py
|
91ce0d933c1a993db23994c1ea53d7a666dce96c |
|
03-Jan-2011 |
Antoine Pitrou <solipsis@pitrou.net> |
Merged revisions 87695 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87695 | antoine.pitrou | 2011-01-03 19:23:55 +0100 (lun., 03 janv. 2011) | 5 lines Issue #10806, issue #9905: Fix subprocess pipes when some of the standard file descriptors (0, 1, 2) are closed in the parent process. Initial patch by Ross Lagerwall. ........
/external/python/cpython2/Lib/test/test_support.py
|
d989f820c880e7dff16293f6d2861330b5019130 |
|
14-Oct-2010 |
Antoine Pitrou <solipsis@pitrou.net> |
Merged revisions 85482 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85482 | antoine.pitrou | 2010-10-14 17:34:31 +0200 (jeu., 14 oct. 2010) | 4 lines Replace the "compiler" resource with the more generic "cpu", so as to mark CPU-heavy tests. ........
/external/python/cpython2/Lib/test/test_support.py
|
a2a53b27d3053a6efe9005804f3222d65b9ef01f |
|
14-Oct-2010 |
Antoine Pitrou <solipsis@pitrou.net> |
Add support for "-3" flag (closes #7516)
/external/python/cpython2/Lib/test/test_support.py
|
a226c9100d52b3f1cefc084e9ab9b863e10655fd |
|
14-Oct-2010 |
Antoine Pitrou <solipsis@pitrou.net> |
Merged revisions 85469 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85469 | antoine.pitrou | 2010-10-14 13:12:00 +0200 (jeu., 14 oct. 2010) | 3 lines Inherit interpreter flags in parallel testing ........
/external/python/cpython2/Lib/test/test_support.py
|
cc676a0d7f683888e658925e2b622e4b88e35605 |
|
10-Sep-2010 |
Victor Stinner <victor.stinner@haypocalc.com> |
Recorded merge of revisions 83987 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83987 | victor.stinner | 2010-08-14 00:23:24 +0200 (sam., 14 août 2010) | 2 lines Fix a typo: TESTFN_UNENCODEABLE => TESTFN_UNENCODABLE ........
/external/python/cpython2/Lib/test/test_support.py
|
286b8332d930d8b0a7825b8a26a26cd896e09caf |
|
07-Sep-2010 |
Antoine Pitrou <solipsis@pitrou.net> |
Merged revisions 84604 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84604 | antoine.pitrou | 2010-09-07 23:43:31 +0200 (mar., 07 sept. 2010) | 3 lines Also catch some gaierrors ........
/external/python/cpython2/Lib/test/test_support.py
|
c818ed4d61b12a702b2af813cd0ac4839faf497f |
|
07-Sep-2010 |
Antoine Pitrou <solipsis@pitrou.net> |
Merged revisions 84597-84599 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84597 | antoine.pitrou | 2010-09-07 22:42:19 +0200 (mar., 07 sept. 2010) | 5 lines Issue #8574: better implementation of test.support.transient_internet(). Original patch by Victor. ........ r84598 | antoine.pitrou | 2010-09-07 23:05:49 +0200 (mar., 07 sept. 2010) | 6 lines Issue #9792: In case of connection failure, socket.create_connection() would swallow the exception and raise a new one, making it impossible to fetch the original errno, or to filter timeout errors. Now the original error is re-raised. ........ r84599 | antoine.pitrou | 2010-09-07 23:09:09 +0200 (mar., 07 sept. 2010) | 4 lines Improve transient_internet() again to detect more network errors, and use it in test_robotparser. Fixes #8574. ........
/external/python/cpython2/Lib/test/test_support.py
|
cc436eb6e83f231c4d5c1bfdd8565b6b4b45effa |
|
03-Aug-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
Merged revisions 78769,79049 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78769 | florent.xicluna | 2010-03-07 21:14:12 +0200 (Sun, 07 Mar 2010) | 2 lines Refresh the documentation for the test.test_support module. ........ r79049 | florent.xicluna | 2010-03-18 21:51:47 +0200 (Thu, 18 Mar 2010) | 2 lines #8155: Preserve backward compatibility for test_support.check_warnings(). Add regression tests. ........
/external/python/cpython2/Lib/test/test_support.py
|
f9c2f4f3991d47b4fcc0114d3e5baf1486e11422 |
|
02-Aug-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
Merged revisions 78815 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78815 | florent.xicluna | 2010-03-09 21:57:01 +0200 (Tue, 09 Mar 2010) | 2 lines #7772: Fix test_py3kwarn. Now the test suite could pass with "-3" flag. ........
/external/python/cpython2/Lib/test/test_support.py
|
f613f352d05cafbec6c4524c67f3eed00a0c4857 |
|
02-Aug-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
Merged revisions 78758 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78758 | florent.xicluna | 2010-03-07 14:18:33 +0200 (Sun, 07 Mar 2010) | 4 lines Issue #7849: Now the utility ``check_warnings`` verifies if the warnings are effectively raised. A new utility ``check_py3k_warnings`` deals with py3k warnings. ........
/external/python/cpython2/Lib/test/test_support.py
|
eeb666ccf3dce7c5b7fe693a4482436b292c8137 |
|
14-Jul-2010 |
Alexander Belopolsky <alexander.belopolsky@gmail.com> |
Merged revisions 82850 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82850 | alexander.belopolsky | 2010-07-13 10:50:16 -0400 (Tue, 13 Jul 2010) | 1 line Set sys.modules[name] to None instead of 0 to block module import. ........
/external/python/cpython2/Lib/test/test_support.py
|
4653fb556c5dacdbd4d8afadd2f73a6c0b394157 |
|
03-Jun-2010 |
R. David Murray <rdmurray@bitdance.com> |
#8889: rewrite transient_internet so we don't use EAI_NODATA on FreeBSD. FreeBSD doesn't have socket.EAI_NODATA. I rewrote the routine because there's no easy way to conditionally include a context manager in a with statement. As a side benefit, instead of a stack of context managers there's now only one.
/external/python/cpython2/Lib/test/test_support.py
|
03883624a4c8bb07d7e4b55a24be6aaf8edd42c5 |
|
28-May-2010 |
Victor Stinner <victor.stinner@haypocalc.com> |
Issue #8835: test_support.transient_internet() catchs gaierror(EAI_NONAME) and gaierror(EAI_NODATA)
/external/python/cpython2/Lib/test/test_support.py
|
d9d147b8060970bca0e8ebb4ee4ba210558d5c28 |
|
27-Apr-2010 |
Victor Stinner <victor.stinner@haypocalc.com> |
Issue #7449, part 1: fix test_support.py for Python compiled without thread
/external/python/cpython2/Lib/test/test_support.py
|
bb66973afb4bb3056709181f320d97074e4db074 |
|
10-Apr-2010 |
Philip Jenvey <pjenvey@underboss.org> |
adjust gc_collect for Jython
/external/python/cpython2/Lib/test/test_support.py
|
735885428d77d5eb0e581fe60e6d1b0f9273a530 |
|
18-Mar-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
#8155: Preserve backward compatibility for test_support.check_warnings(). Add regression tests.
/external/python/cpython2/Lib/test/test_support.py
|
3cc8f211ed0d569836114d0d54c6298a21e6dde3 |
|
15-Mar-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
Issue #7783 and #7787: open_urlresource invalidates the outdated files from the local cache. Use this feature to fix test_normalization.
/external/python/cpython2/Lib/test/test_support.py
|
1b51c3d4deb4e99fe8440ce9e6f82769e2a1b9be |
|
13-Mar-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
Do not chdir when running test_xml_etree, and enhance the findfile helper.
/external/python/cpython2/Lib/test/test_support.py
|
4d42f2b4d1287f369295be206d962d86a3a0cb25 |
|
09-Mar-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
#7772: Fix test_py3kwarn. Now the test suite could pass with "-3" flag.
/external/python/cpython2/Lib/test/test_support.py
|
fc8a1ed70e2586871e06cea60dfd25a96ed5a313 |
|
07-Mar-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
Refresh the documentation for the test.test_support module.
/external/python/cpython2/Lib/test/test_support.py
|
6de9e938a5f70128a77c589b3ec40936f6335c1c |
|
07-Mar-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
Issue #7849: Now the utility ``check_warnings`` verifies if the warnings are effectively raised. A new utility ``check_py3k_warnings`` deals with py3k warnings.
/external/python/cpython2/Lib/test/test_support.py
|
9e9af21d45e8f5c9debd799fd521a87b0d97c698 |
|
20-Feb-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
skip tests with a non-ascii cwd when the file system encoding is ascii
/external/python/cpython2/Lib/test/test_support.py
|
8f6a28702961430a2217be64d9d53e2ea490f1b3 |
|
10-Feb-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
#7712: add a temp_cwd context manager to test_support and use it in regrtest to run all the tests in a temporary directory, saving the original CWD in test_support.SAVEDCWD. Thanks to Florent Xicluna who helped with the patch.
/external/python/cpython2/Lib/test/test_support.py
|
dc84f8fbb4e6ac4a565330281bf4d68c6332b6e2 |
|
03-Feb-2010 |
Brett Cannon <bcannon@gmail.com> |
Fix a typo in a docstring introduced in r77956.
/external/python/cpython2/Lib/test/test_support.py
|
18e4db5ebe8396d06478c0a3fdbf3076e4b747ed |
|
03-Feb-2010 |
Brett Cannon <bcannon@gmail.com> |
Update a docstring to suggest using importlib.import_module instead of calling __import__ directly.
/external/python/cpython2/Lib/test/test_support.py
|
dd62b4d0495c8ab9ef369a3696e7ff3ec4ba9bcd |
|
25-Jan-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
Revert r77730 and add back verify and vereq in case other projects use them, but leave the changes in test_pprint and string_tests.
/external/python/cpython2/Lib/test/test_support.py
|
4bfd7ad09ce6b4b479976df154c36d86beeb4f97 |
|
24-Jan-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
Merged revisions 77729 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77729 | ezio.melotti | 2010-01-24 22:48:35 +0200 (Sun, 24 Jan 2010) | 1 line remove archaic functions from test_support ........
/external/python/cpython2/Lib/test/test_support.py
|
469a05fe46b7adfac11d9d2e4c64ec4a419d5ea6 |
|
24-Jan-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
remove archaic functions from test_support
/external/python/cpython2/Lib/test/test_support.py
|
07728e9b46cdde12b8f16582916b14a89446e275 |
|
01-Nov-2009 |
Antoine Pitrou <solipsis@pitrou.net> |
Merged revisions 76037 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r76037 | antoine.pitrou | 2009-11-01 23:02:03 +0100 (dim., 01 nov. 2009) | 3 lines Use a custom timeout in test_support.open_urlresource. ........
/external/python/cpython2/Lib/test/test_support.py
|
84ee9e257ea508284c29effa4253226502b38428 |
|
01-Nov-2009 |
Antoine Pitrou <solipsis@pitrou.net> |
Use a custom timeout in test_support.open_urlresource.
/external/python/cpython2/Lib/test/test_support.py
|
59c44f36e0a575671c0e8dab6a9de88666e481b0 |
|
30-Oct-2009 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #7222: Make thread "reaping" more reliable so that reference leak-chasing test runs give sensible results. The previous method of reaping threads could return successfully while some Thread objects were still referenced. This also introduces a new private function: :func:hread._count().
/external/python/cpython2/Lib/test/test_support.py
|
9e28ca707b225051a59617aaf33997fd688c20cc |
|
28-Oct-2009 |
R. David Murray <rdmurray@bitdance.com> |
Merged revisions 75528 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75528 | r.david.murray | 2009-10-19 13:53:58 -0400 (Mon, 19 Oct 2009) | 4 lines Clarify error report message, and don't recommend running in verbose mode for more information if we are already running in verbose mode. ........
/external/python/cpython2/Lib/test/test_support.py
|
a24db67d4704550722db3181b38b3840ded989bc |
|
19-Oct-2009 |
R. David Murray <rdmurray@bitdance.com> |
Clarify error report message, and don't recommend running in verbose mode for more information if we are already running in verbose mode.
/external/python/cpython2/Lib/test/test_support.py
|
f317019c079d2bb4646a1cde1785c73880b50d00 |
|
18-Oct-2009 |
Nick Coghlan <ncoghlan@gmail.com> |
Silence a deprecation warning by using the appropriate replacement construct
/external/python/cpython2/Lib/test/test_support.py
|
fd4903bf05705d73c8b97d945a50e4e03abad729 |
|
17-Oct-2009 |
Nick Coghlan <ncoghlan@gmail.com> |
Move restoration of the os.environ object into the context manager where it belongs
/external/python/cpython2/Lib/test/test_support.py
|
8c1ffeb614406ecaad651609f25f7bffee6237aa |
|
17-Oct-2009 |
Nick Coghlan <ncoghlan@gmail.com> |
Don't invoke reload(sys) and use StringIO objects instead of real files to capture stdin and stdout when needed (ensures all sys attributes remain unmodified after test_xmlrpc runs)
/external/python/cpython2/Lib/test/test_support.py
|
7df72dcdf9219db2f10889809d75f9bd8a99c14f |
|
17-Oct-2009 |
Nick Coghlan <ncoghlan@gmail.com> |
Restore original sys.path when running TTK tests
/external/python/cpython2/Lib/test/test_support.py
|
9bd39c119e9b858c18191e0c1a7ffe5c3bcd1fe2 |
|
12-Jul-2009 |
Benjamin Peterson <benjamin@python.org> |
put downloaded test support files in Lib/test/data instead of the cwd
/external/python/cpython2/Lib/test/test_support.py
|
5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e |
|
01-Jul-2009 |
Benjamin Peterson <benjamin@python.org> |
convert usage of fail* to assert*
/external/python/cpython2/Lib/test/test_support.py
|
19690593273a5b210a9b9ea72bd59840d02759b0 |
|
12-Jun-2009 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #6215: backport the 3.1 io lib
/external/python/cpython2/Lib/test/test_support.py
|
382ccdfd5bb1529c81187313165fd08bf9ca66fe |
|
31-May-2009 |
Benjamin Peterson <benjamin@python.org> |
remove function import
/external/python/cpython2/Lib/test/test_support.py
|
4698d9928ef1547e86a3f692e0c8d77e3f5e869c |
|
31-May-2009 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #6152: New option '-j'/'--multiprocess' for regrtest allows running regression tests in parallel, shortening the total runtime.
/external/python/cpython2/Lib/test/test_support.py
|
0db3cd6700d18f3bfcaf71405d5da43c1928d55e |
|
15-May-2009 |
Benjamin Peterson <benjamin@python.org> |
a useful decorator for cleaning up threads
/external/python/cpython2/Lib/test/test_support.py
|
6733bed57e780008f8c78422d2a9676b9a2710cf |
|
01-May-2009 |
Walter Dörwald <walter@livinglogic.de> |
Make test.test_support.EnvironmentVarGuard behave like a dictionary. All changes are mirrored to the underlying os.environ dict, but rolled back on exit from the with block.
/external/python/cpython2/Lib/test/test_support.py
|
729df0104584b64a51f919feb759d1b922508ba2 |
|
25-Apr-2009 |
Walter Dörwald <walter@livinglogic.de> |
Merged revisions 71875 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r71875 | walter.doerwald | 2009-04-25 14:15:07 +0200 (Sa, 25 Apr 2009) | 7 lines Issue #5837: Certain sequences of calls to set() and unset() for support.EnvironmentVarGuard objects restored the environment variables incorrectly on __exit__. Fix this by recording the initial value of each environment variable on the first access in set() or unset(). ........
/external/python/cpython2/Lib/test/test_support.py
|
a145317be9989bcb17f9631af7e2fc3d0e628669 |
|
25-Apr-2009 |
Walter Dörwald <walter@livinglogic.de> |
Issue #5837: Certain sequences of calls to set() and unset() for support.EnvironmentVarGuard objects restored the environment variables incorrectly on __exit__. Fix this by recording the initial value of each environment variable on the first access in set() or unset().
/external/python/cpython2/Lib/test/test_support.py
|
5533ff6a2ea1560cf6700c07096f34c5b9bf5874 |
|
22-Apr-2009 |
Nick Coghlan <ncoghlan@gmail.com> |
Issue 5354: Change API for import_fresh_module() to better support test_warnings use case (also fixes some bugs in the original implementation)
/external/python/cpython2/Lib/test/test_support.py
|
cd2e7042ae7d2ebd27c26c36aef9b761b1f9d22f |
|
11-Apr-2009 |
Nick Coghlan <ncoghlan@gmail.com> |
Issue 5354: Provide a standardised testing mechanism for doing fresh imports of modules, including the ability to block extension modules in order to test the pure Python fallbacks
/external/python/cpython2/Lib/test/test_support.py
|
bdeacba51bfebf18164fa82cfefd59dcd5ba2498 |
|
31-Mar-2009 |
R. David Murray <rdmurray@bitdance.com> |
Improve test_support.import_module docstring, remove deprecated flag from get_attribute since it isn't likely to do anything useful.
/external/python/cpython2/Lib/test/test_support.py
|
597ebab74466593dc05a35faad0f5c316900153b |
|
31-Mar-2009 |
R. David Murray <rdmurray@bitdance.com> |
A few more test skips via import_module, and change import_module to 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.
/external/python/cpython2/Lib/test/test_support.py
|
3db8a3432bd84b58bdc7da2c9872777c537a4d09 |
|
31-Mar-2009 |
R. David Murray <rdmurray@bitdance.com> |
Change more tests to use import_module for the modules that should cause tests to be skipped. Also rename import_function to the more descriptive get_attribute and add a docstring.
/external/python/cpython2/Lib/test/test_support.py
|
59beec326a4721154a952027cb34c3e2e4612e28 |
|
30-Mar-2009 |
R. David Murray <rdmurray@bitdance.com> |
Add import_function method to test.test_support, and modify a number of 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.
/external/python/cpython2/Lib/test/test_support.py
|
effa1dc70909011e4231a475c77dc5226d9b60ac |
|
26-Mar-2009 |
Benjamin Peterson <benjamin@python.org> |
** is required here
/external/python/cpython2/Lib/test/test_support.py
|
a9b5be0c05b8d9750e371f334e730b2cbef6cb01 |
|
26-Mar-2009 |
Benjamin Peterson <benjamin@python.org> |
must pass argument to get expected behavior ;)
/external/python/cpython2/Lib/test/test_support.py
|
bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1 |
|
26-Mar-2009 |
Benjamin Peterson <benjamin@python.org> |
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
/external/python/cpython2/Lib/test/test_support.py
|
ad57d97596bb9466e6fce0c3dfcf436fd5c36ff9 |
|
26-Mar-2009 |
Benjamin Peterson <benjamin@python.org> |
fix naming
/external/python/cpython2/Lib/test/test_support.py
|
888a39b54c4f47ee25d53b157e2c50402627cd0b |
|
26-Mar-2009 |
Benjamin Peterson <benjamin@python.org> |
remove test_support.TestSkipped and just use unittest.SkipTest
/external/python/cpython2/Lib/test/test_support.py
|
c3141a6e9607f41ad32ebb0002d009a3728be4fc |
|
26-Mar-2009 |
Benjamin Peterson <benjamin@python.org> |
add some useful utilities for skipping tests with unittest's new skipping ability most significantly apply a modified portion of the patch from #4242 with patches for skipping implementation details
/external/python/cpython2/Lib/test/test_support.py
|
2f6f7436aa16df56b60e584f5396ffe7c608a2e1 |
|
25-Mar-2009 |
Benjamin Peterson <benjamin@python.org> |
this can be slightly less ugly
/external/python/cpython2/Lib/test/test_support.py
|
2bf74fd0ac6e30f1e8234954d30920016f33736e |
|
24-Mar-2009 |
Benjamin Peterson <benjamin@python.org> |
this is better written using assertRaises
/external/python/cpython2/Lib/test/test_support.py
|
29d93816259cb5606a9a749a965e1e9862b3a4f5 |
|
19-Jan-2009 |
Benjamin Peterson <benjamin@python.org> |
Merged revisions 68779 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r68779 | benjamin.peterson | 2009-01-19 11:37:42 -0600 (Mon, 19 Jan 2009) | 1 line make bad file descriptor tests more robust ........
/external/python/cpython2/Lib/test/test_support.py
|
5539c783912d1cc84d9df16322e1083866ad2033 |
|
19-Jan-2009 |
Benjamin Peterson <benjamin@python.org> |
make bad file descriptor tests more robust
/external/python/cpython2/Lib/test/test_support.py
|
d2e09383624944add0e670b857c572129d56988e |
|
11-Sep-2008 |
Nick Coghlan <ncoghlan@gmail.com> |
Issue #3781: Final cleanup of warnings.catch_warnings and its usage in the test suite. Closes issue w.r.t. 2.6 (R: Brett Cannon)
/external/python/cpython2/Lib/test/test_support.py
|
672237dc6ca1498eabac08554bcbc5bd0fd9ddaa |
|
09-Sep-2008 |
Brett Cannon <bcannon@gmail.com> |
warnings.catch_warnings() now returns a list or None instead of the custom WarningsRecorder object. This makes the API simpler to use as no special object must be learned. Closes issue 3781. Review by Benjamin Peterson.
/external/python/cpython2/Lib/test/test_support.py
|
1eaf0742d877fd9d84d6ed82a04bc33b027e9ad0 |
|
02-Sep-2008 |
Brett Cannon <bcannon@gmail.com> |
Move test.test_support.catch_warning() to the warnings module, rename it catch_warnings(), and clean up the API. While expanding the test suite, a bug was found where a warning about the 'line' argument to showwarning() was not letting functions with '*args' go without a warning. Closes issue 3602. Code review by Benjamin Peterson.
/external/python/cpython2/Lib/test/test_support.py
|
e7d8be80ba634fa15ece6f503c33592e0d333361 |
|
31-Jul-2008 |
Neal Norwitz <nnorwitz@gmail.com> |
Security patches from Apple: prevent int overflow when allocating memory
/external/python/cpython2/Lib/test/test_support.py
|
cda5ce24ed20a7e9f68282ac55b0d6949fe0c7db |
|
31-Jul-2008 |
Brett Cannon <bcannon@gmail.com> |
Backport test.support.fcmp() from 3.0 to silence -3 warnings.
/external/python/cpython2/Lib/test/test_support.py
|
30e208d525cd472446feb91b774cf472e7122918 |
|
23-Jul-2008 |
Benjamin Peterson <benjamin@python.org> |
remove unneeded import
/external/python/cpython2/Lib/test/test_support.py
|
9334d02ff5afe7c694cab76689db5d967349d277 |
|
18-Jul-2008 |
Georg Brandl <georg@python.org> |
Remove duplicate entry in __all__.
/external/python/cpython2/Lib/test/test_support.py
|
38469e271929399c12d6770d91958d8abac7433a |
|
13-Jul-2008 |
Nick Coghlan <ncoghlan@gmail.com> |
Make test.test_support.catch_warnings more robust as discussed on python-dev. Also add explicit tests for itto test_warnings.
/external/python/cpython2/Lib/test/test_support.py
|
838c7b3619cc8c68d115235c4bf3b0ab19eb5d04 |
|
27-May-2008 |
Benjamin Peterson <benjamin@python.org> |
remove some __getslice__
/external/python/cpython2/Lib/test/test_support.py
|
eeb2b21ab0ecc3f10a51eea989ba6c2f1f01a9bd |
|
26-May-2008 |
Benjamin Peterson <benjamin@python.org> |
add __all__ to test_support
/external/python/cpython2/Lib/test/test_support.py
|
445ff35d5ca434df596524d03497bab23a827fb7 |
|
11-May-2008 |
Alexandre Vassalotti <alexandre@peadrop.com> |
Fixed typo in a comment of test_support.CleanImport.
/external/python/cpython2/Lib/test/test_support.py
|
eb83f70586d6fc7ac1526c823a0567a22477ebdd |
|
11-May-2008 |
Alexandre Vassalotti <alexandre@peadrop.com> |
Added test framework for handling module renames. Factored the import guard in test_py3kwarn.TestStdlibRemovals into a context manager, namely test_support.CleanImport.
/external/python/cpython2/Lib/test/test_support.py
|
edb628f24132a8f63c94effa09a537e30f3b55f5 |
|
10-May-2008 |
Brett Cannon <bcannon@gmail.com> |
Suppress deprecations for packages as well when using test.test_support.import_module().
/external/python/cpython2/Lib/test/test_support.py
|
5d023c3afacf4af2bcaedcb63305a36e179f0236 |
|
08-May-2008 |
Brett Cannon <bcannon@gmail.com> |
Fix a bug introduced by the addition of the 'record' argument to test.test_support.catch_warning() where showwarning() was not being set properly.
/external/python/cpython2/Lib/test/test_support.py
|
bfb997d6a5a7fa79a67d63355390337d4e796b6c |
|
08-May-2008 |
Brett Cannon <bcannon@gmail.com> |
Make test.test_support.catch_warning() take an argument specifying if any triggered warnings should be captured. This allows the context manager to be used to just prevent the internal state of the 'warnings' framework and thus allow triggered warnings to be displayed.
/external/python/cpython2/Lib/test/test_support.py
|
9d4418242757f616ca7041409c7015e166b2c9f9 |
|
08-May-2008 |
Brett Cannon <bcannon@gmail.com> |
The mutex module has been deprecated for removal in 3.0.
/external/python/cpython2/Lib/test/test_support.py
|
d8f2d0bdb3d3b9abe53cda9add979e2fc4be7da0 |
|
30-Apr-2008 |
Benjamin Peterson <benjamin@python.org> |
make test_support's captured_output a bit more robust when exceptions happen
/external/python/cpython2/Lib/test/test_support.py
|
e3d3785e116c319980fe5698ae51e43a68733042 |
|
13-Apr-2008 |
Skip Montanaro <skip@pobox.com> |
spelling
/external/python/cpython2/Lib/test/test_support.py
|
e9746890388178bb1e4cdad3c0586bf1862c3727 |
|
13-Apr-2008 |
Brett Cannon <bcannon@gmail.com> |
Re-implement the 'warnings' module in C. This allows for usage of the 'warnings' code in places where it was previously not possible (e.g., the parser). It could also potentially lead to a speed-up in interpreter start-up if the C version of the code (_warnings) is imported over the use of the Python version in key places. Closes issue #1631171.
/external/python/cpython2/Lib/test/test_support.py
|
e41b0061dd908251a393f77b030c9e7308ecd5c5 |
|
09-Apr-2008 |
Trent Nelson <trent.nelson@snakebite.org> |
- Issue #2550: The approach used by client/server code for obtaining ports to listen on in network-oriented tests has been refined in an effort to facilitate running multiple instances of the entire regression test suite in parallel without issue. test_support.bind_port() has been fixed such that it will always return a unique port -- which wasn't always the case with the previous implementation, especially if socket options had been set that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT). The new implementation of bind_port() will actually raise an exception if it is passed an AF_INET/SOCK_STREAM socket with either the SO_REUSEADDR or SO_REUSEPORT socket option set. Furthermore, if available, bind_port() will set the SO_EXCLUSIVEADDRUSE option on the socket it's been passed. This currently only applies to Windows. This option prevents any other sockets from binding to the host/port we've bound to, thus removing the possibility of the 'non-deterministic' behaviour, as Microsoft puts it, that occurs when a second SOCK_STREAM socket binds and accepts to a host/port that's already been bound by another socket. The optional preferred port parameter to bind_port() has been removed. Under no circumstances should tests be hard coding ports! test_support.find_unused_port() has also been introduced, which will pass a temporary socket object to bind_port() in order to obtain an unused port. The temporary socket object is then closed and deleted, and the port is returned. This method should only be used for obtaining an unused port in order to pass to an external program (i.e. the -accept [port] argument to openssl's s_server mode) or as a parameter to a server-oriented class that doesn't give you direct access to the underlying socket used. Finally, test_support.HOST has been introduced, which should be used for the host argument of any relevant socket calls (i.e. bind and connect). The following tests were updated to following the new conventions: test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib, test_poplib, test_ftplib, test_telnetlib, test_socketserver, test_asynchat and test_socket_ssl. It is now possible for multiple instances of the regression test suite to run in parallel without issue.
/external/python/cpython2/Lib/test/test_support.py
|
8d2a90af2dd04877e5df4c12fd71e1ae86a3b7b9 |
|
01-Apr-2008 |
Brett Cannon <bcannon@gmail.com> |
Generalize test.test_support.test_stdout() with a base context manager so that it is easy to capture stderr if desired.
/external/python/cpython2/Lib/test/test_support.py
|
c6b5200931ee1d1029f8d24a79c3f48b40358771 |
|
25-Feb-2008 |
Brett Cannon <bcannon@gmail.com> |
Fix a minor typo in a docstring.
/external/python/cpython2/Lib/test/test_support.py
|
6057b2e645dd3b7a262553d5a547ef45d3fc5d93 |
|
24-Feb-2008 |
Neal Norwitz <nnorwitz@gmail.com> |
Create a db_home directory with a unique name so multiple users can run the test simultaneously. The simplest thing I found that worked on both Windows and Unix was to use the PID. It's unique so should be sufficient. This should prevent many of the spurious failures of the automated tests since they run as different users. Also cleanup the directory consistenly in the tearDown methods. It would be nice if someone ensured that the directories are always created with a consistent name.
/external/python/cpython2/Lib/test/test_support.py
|
c5f05e45cffa16f45f1332cec531c045893f928f |
|
23-Feb-2008 |
Christian Heimes <christian@cheimes.de> |
Patch #2167 from calvin: Remove unused imports
/external/python/cpython2/Lib/test/test_support.py
|
880605aafdb60977c0d441c2472a3ee1dbfbd2d3 |
|
14-Oct-2007 |
Neal Norwitz <nnorwitz@gmail.com> |
Let the O/S supply a port if none of the default ports can be used. This should make the tests more robust at the expense of allowing tests to be sloppier by not requiring them to cleanup after themselves. (It will legitamitely help when running two test suites simultaneously or if another process is already using one of the predefined ports.) Also simplifies (slightLy) the exception handling elsewhere.
/external/python/cpython2/Lib/test/test_support.py
|
692bbc4790546a42405ace5c61f0c239ebd6e351 |
|
24-Aug-2007 |
Georg Brandl <georg@python.org> |
Port test_frozen to unittest.
/external/python/cpython2/Lib/test/test_support.py
|
2ee4128e9b4f481d5029fe4c8ada6c12ac64e2bd |
|
14-Aug-2007 |
Brett Cannon <bcannon@gmail.com> |
Remove test.test_support.guard_warnings_filter. test.test_support.catch_warning is more full-featured and provides the same functionality. Since guard_warnings_filter was added in 2.6 there is no backwards-compatibility issues.
/external/python/cpython2/Lib/test/test_support.py
|
7b97e8a9c2b6b5fc2aab900ac8c568a89df93e59 |
|
14-Aug-2007 |
Brett Cannon <bcannon@gmail.com> |
Fix a minor typo in a docstring.
/external/python/cpython2/Lib/test/test_support.py
|
fa9be8c289a963bbd626c452b7c0a2ddde12a7ef |
|
09-May-2007 |
Collin Winter <collinw@gmail.com> |
Fix a bug in test.test_support.open_urlresource(). If the call to requires() doesn't precede the filesystem check, we get the following situation: 1. ./python Lib/test/regrtest.py test_foo # test needs urlfetch, not enabled, so skipped 2. ./python Lib/test/regrtest.py -u urlfetch test_foo # test runs 3. ./python Lib/test/regrtest.py test_foo # test runs (!) By moving the call to requires() *before* the filesystem check, the fact that fetched files are cached on the local disk becomes an implementation detail, rather than a semantics-changing point of note.
/external/python/cpython2/Lib/test/test_support.py
|
f00c5b5873f950b67c2f3690308f79a761b512a2 |
|
25-Apr-2007 |
Collin Winter <collinw@gmail.com> |
Import and raise statement cleanup.
/external/python/cpython2/Lib/test/test_support.py
|
297996b7d372118dcf18d9a1dee9466caca08848 |
|
25-Apr-2007 |
Collin Winter <collinw@gmail.com> |
Change test_support.have_unicode to use True/False instead of 1/0.
/external/python/cpython2/Lib/test/test_support.py
|
c2898c5a678e6dd00c3e0b18a214fcd7a3533800 |
|
25-Apr-2007 |
Collin Winter <collinw@gmail.com> |
Standardize on test.test_support.run_unittest() (as opposed to a mix of run_unittest() and run_suite()). Also, add functionality to run_unittest() that admits usage of unittest.TestLoader.loadTestsFromModule().
/external/python/cpython2/Lib/test/test_support.py
|
e6dae6c655bf1e5542f8d3821e2710e9fc0b5762 |
|
03-Apr-2007 |
Walter Dörwald <walter@livinglogic.de> |
Implement a contextmanager test.test_support.catch_warning that can be used to catch the last warning issued by the warning framework. Change test_warnings.py and test_structmembers.py to use this new contextmanager.
/external/python/cpython2/Lib/test/test_support.py
|
09a86bc5ef9899c4c86f31e9ecc0bec88b6e415f |
|
13-Mar-2007 |
Brett Cannon <bcannon@gmail.com> |
Fix a typo where the variable name was not updated.
/external/python/cpython2/Lib/test/test_support.py
|
41d4e32353a546036d76c154169917f5f754ce09 |
|
13-Mar-2007 |
Brett Cannon <bcannon@gmail.com> |
Add test.test_support.transient_internet . Returns a context manager that nests test.test_support.TransientResource context managers that capture exceptions raised when the Internet connection is flaky. Initially using in test_socket_ssl but should probably be expanded to cover any test that should not raise the captured exceptions if the Internet connection works.
/external/python/cpython2/Lib/test/test_support.py
|
a30fcb4dae51705f182383a6ad5f3fb86a80f9fb |
|
09-Mar-2007 |
Brett Cannon <bcannon@gmail.com> |
Introduce test.test_support.TransientResource. It's a context manager to surround calls to resources that may or may not be available. Specifying the expected exception and attributes to be raised if the resource is not available prevents overly broad catching of exceptions. This is meant to help suppress spurious failures by raising test.test_support.ResourceDenied if the exception matches. It would probably be good to go through the various network tests and surround the calls to catch connection timeouts (as done with test_socket_ssl in this commit).
/external/python/cpython2/Lib/test/test_support.py
|
f733abb7831d6566cb0fccd0550d58ec3b7f05a4 |
|
30-Jan-2007 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_support.py
|
92d54d5e9c52da3eb71b4a5aa940d0f2b6aed254 |
|
04-Jan-2007 |
Brett Cannon <bcannon@gmail.com> |
Add EnvironmentVarGuard to test.test_support. Provides a context manager to temporarily set or unset environment variables.
/external/python/cpython2/Lib/test/test_support.py
|
6d9520c4f0e01ff87ff3d74166f508df0a215261 |
|
14-Dec-2006 |
Brett Cannon <bcannon@gmail.com> |
Add test.test_support.guard_warnings_filter . This function returns a context manager that protects warnings.filter from being modified once the context is exited.
/external/python/cpython2/Lib/test/test_support.py
|
c6fdec6d7eef0582baefd77b4a51da9b69326a37 |
|
28-Oct-2006 |
Georg Brandl <georg@python.org> |
Convert test_global, test_scope and test_grammar to unittest. I tried to enclose all tests which must be run at the toplevel (instead of inside a method) in exec statements.
/external/python/cpython2/Lib/test/test_support.py
|
97ff04789de3e37af585648de70260a54a29bd47 |
|
09-Aug-2006 |
Armin Rigo <arigo@tunes.org> |
Concatenation on a long string breaks (SF #1526585).
/external/python/cpython2/Lib/test/test_support.py
|
b15ac3169d5958e294e09f8daeab0f413e76d0a3 |
|
29-Jun-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Add new utility function, reap_children(), to test_support. This should be called at the end of each test that spawns children (perhaps it should be called from regrtest instead?). This will hopefully prevent some of the unexplained failures in the buildbots (hppa and alpha) during tests that spawn children. The problems were not reproducible. There were many zombies that remained at the end of several tests. In the worst case, this shouldn't cause any more problems, though it may not help either. Time will tell.
/external/python/cpython2/Lib/test/test_support.py
|
43bc3788c0333b5d6230a5a28885b2fa70b42a86 |
|
19-Jun-2006 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_support.py
|
9602cc2aa43e489a61df800013bc7767094ede91 |
|
18-Jun-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Prevent spurious leaks when running regrtest.py -R. There may be more issues that crop up from time to time, but this change seems to have been pretty stable (no spurious warnings) for about a week. Other modules which use threads may require similar use of threading_setup/threading_cleanup from test_support.
/external/python/cpython2/Lib/test/test_support.py
|
909eb12c9529971db352c91327c8d72bd0d16e4b |
|
12-Jun-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix the socket tests so they can be run concurrently. Backport candidate
/external/python/cpython2/Lib/test/test_support.py
|
de9b624fb943295263f8140d9d2eda393348b8ec |
|
30-Apr-2006 |
Georg Brandl <georg@python.org> |
Bug #1473625: stop cPickle making float dumps locale dependent in protocol 0. On the way, add a decorator to test_support to facilitate running single test functions in different locales with automatic cleanup.
/external/python/cpython2/Lib/test/test_support.py
|
137b1ad8a0946556075442cb102c89671a7df2c5 |
|
28-Apr-2006 |
Thomas Wouters <thomas@python.org> |
Do the small-memory run of big-meormy tests using a prime number, rather than a convenient power-of-2-and-multiple-of-5, so incorrect testing algorithms fail more easily.
/external/python/cpython2/Lib/test/test_support.py
|
687324918f0f7653cc2cd275fcfa529cc5117542 |
|
26-Apr-2006 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_support.py
|
abd08884a685d3724798664f7c2f0aab7a6640c8 |
|
26-Apr-2006 |
Thomas Wouters <thomas@python.org> |
The result of SF patch #1471578: big-memory tests for strings, lists and tuples. Lots to be added, still, but this will give big-memory people something to play with in 2.5 alpha 2, and hopefully get more people to write these tests.
/external/python/cpython2/Lib/test/test_support.py
|
0e17f8cd38a4013ccab83f308968353810fd970d |
|
23-Jan-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Convenience function to remove a possibly non-existant file
/external/python/cpython2/Lib/test/test_support.py
|
aaa2f1dea706daf2a5f431d97a3e3120dba652d2 |
|
10-Dec-2005 |
Hye-Shik Chang <hyeshik@gmail.com> |
Patch #1276356: Implement new resource "urlfetch" for regrtest. This enables even impatient people to run tests that require remote files such as test_normalization and test_codecmaps_*.
/external/python/cpython2/Lib/test/test_support.py
|
e2713becd8cb0c3b2db4d33832dd57a1d619f0f3 |
|
08-Mar-2005 |
Martin v. Löwis <martin@v.loewis.de> |
Build with --disable-unicode again. Fixes #1158607. Will backport to 2.4.
/external/python/cpython2/Lib/test/test_support.py
|
58eb11cf62dd04ccc2c364b62fd51b4265e2e203 |
|
18-Jan-2004 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_support.py
|
c6c5ece7e2ece9ac5c4ba3b06a1d56b78cf74b27 |
|
04-Dec-2003 |
Tim Peters <tim.peters@gmail.com> |
Typo repair; added some comments and horizontal whitespace.
/external/python/cpython2/Lib/test/test_support.py
|
2e8624c21ad0808bad02a2cf907d9a266f9c99d8 |
|
03-Dec-2003 |
Mark Hammond <mhammond@skippinet.com.au> |
Fix test_unicode_file errors on platforms without Unicode file support, by setting TESTFN_UNICODE_UNENCODEABLE on these platforms. test_unicode_file only attempts to use the name for testing if not None.
/external/python/cpython2/Lib/test/test_support.py
|
b337dd903bdf4438b367b586a9e097eb9efeb46d |
|
03-Dec-2003 |
Mark Hammond <mhammond@skippinet.com.au> |
Add TESTFN_UNICODE_UNENCODEABLE, a unicode filename that can not be encoded using the default file system encoding.
/external/python/cpython2/Lib/test/test_support.py
|
f3590623e9fe5c918709634cfca28d30fb444b7c |
|
16-Jul-2003 |
Raymond Hettinger <python@rcn.com> |
Extend last change to cover TestSuites as well as TestCases.
/external/python/cpython2/Lib/test/test_support.py
|
21d9987cb5bf49c80aee083b3d6b9e9811ca180c |
|
16-Jul-2003 |
Raymond Hettinger <python@rcn.com> |
run_unittest() to support TestCase instances as well as classes. Helps with doctests.
/external/python/cpython2/Lib/test/test_support.py
|
1ba24b4fbb1c675cd2edbdf2b1c0fbb5054b8969 |
|
17-May-2003 |
Raymond Hettinger <python@rcn.com> |
Include module name in doctest summary.
/external/python/cpython2/Lib/test/test_support.py
|
35b34bd3260516e2a6d9073d14e2424dd7f40b66 |
|
17-May-2003 |
Raymond Hettinger <python@rcn.com> |
Provide a clue that the doctests have run.
/external/python/cpython2/Lib/test/test_support.py
|
a94568a7535de60f1144e4eea0d027b87017a4b4 |
|
10-May-2003 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #734231: Update RiscOS support. In particular, correct riscospath.extsep, and use os.extsep throughout.
/external/python/cpython2/Lib/test/test_support.py
|
f1cfb622e8d157f3043dddca983977e78528f06e |
|
04-May-2003 |
Brett Cannon <bcannon@gmail.com> |
'forget' now also deletes any proper .pyo files. Added some docstrings.
/external/python/cpython2/Lib/test/test_support.py
|
21d3a32b99c5763444c34c189ef653ac9745f3c4 |
|
01-May-2003 |
Walter Dörwald <walter@livinglogic.de> |
Combine the functionality of test_support.run_unittest() 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.
/external/python/cpython2/Lib/test/test_support.py
|
9dcbbea87867f38f7994dd96388266114ef0c162 |
|
27-Apr-2003 |
Raymond Hettinger <python@rcn.com> |
Factor out common boilerplate for test_support
/external/python/cpython2/Lib/test/test_support.py
|
d839ecdc8133c34c024deb8474b7d4788c38b85c |
|
24-Apr-2003 |
Skip Montanaro <skip@pobox.com> |
if the test is run directly (__name__ == "__main__") don't actually require particular resources
/external/python/cpython2/Lib/test/test_support.py
|
73d538b9c6d2f262a7d615248c84e509ebd64731 |
|
05-Mar-2003 |
Martin v. Löwis <martin@v.loewis.de> |
Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize, and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding. Adjust test case.
/external/python/cpython2/Lib/test/test_support.py
|
9a0db07c2ffd4e4b3ae75d5820dc6b4152b3582b |
|
03-Feb-2003 |
Fred Drake <fdrake@acm.org> |
test_support.requires(): Instead of raising TestSkipped, raise a new exception, ResourceDenied. This is used to distinguish between tests that are skipped for other reasons (platform support, missing data, etc.) from those that are skipped because a "resource" has not been enabled. This prevents those tests from being reported as unexpected skips for the platform; those should only be considered unexpected skips if the resource were enabled.
/external/python/cpython2/Lib/test/test_support.py
|
b4ee4eb3b308d55bd0d8d5a1abb2015950934c77 |
|
04-Dec-2002 |
Tim Peters <tim.peters@gmail.com> |
Rearrange test_socket_ssl so that a skip is expected iff the network resource isn't enabled or the socket module doesn't support ssl.
/external/python/cpython2/Lib/test/test_support.py
|
2411a2dd8283279cf8c4f9ffcd830271506ed3d2 |
|
09-Nov-2002 |
Martin v. Löwis <martin@v.loewis.de> |
Don't try to convert the test filename to Unicode with -U.
/external/python/cpython2/Lib/test/test_support.py
|
3de75266aafa32e4d435b5b8a9d950acb53a5990 |
|
09-Nov-2002 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_support.py
|
26a1eefd0f28bbdee48cd38a5c0cb9ba5ff37768 |
|
03-Nov-2002 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix SF # 631066, running regrtest in user mode fails Try to write to TESTFN, if that fails, try TESTFN in /tmp If that fails, print a warning and go on. Will backport.
/external/python/cpython2/Lib/test/test_support.py
|
57bc5fa60a25661237861b3d3c9941ca8f5dbfd7 |
|
01-Nov-2002 |
Finn Bock <bckfnn@worldonline.dk> |
Patch #631972: Adds an is_jython flag.
/external/python/cpython2/Lib/test/test_support.py
|
408b6d34de2b1a6ba690557def435adce9314184 |
|
31-Jul-2002 |
Barry Warsaw <barry@python.org> |
Complete the absolute import patch for the test suite. All relative imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
/external/python/cpython2/Lib/test/test_support.py
|
77902970c598c068a2916e86ca386d1387c4c369 |
|
29-Dec-2001 |
Tim Peters <tim.peters@gmail.com> |
test_support: add a docstring to vereq(). test_complex: repair new test's usage of vereq().
/external/python/cpython2/Lib/test/test_support.py
|
c2fe618575aaf58ddf36d04d96431d6dc819ef31 |
|
31-Oct-2001 |
Tim Peters <tim.peters@gmail.com> |
Fix bad bug in structseq slicing (NULL pointers in result). Reported by Jack Jansen on python-dev. Add simple test case. Move vereq() from test_descr to test_support (it's handy!).
/external/python/cpython2/Lib/test/test_support.py
|
266410355f7faa7c98b29a16b9f50c56a9224f4b |
|
04-Oct-2001 |
Fred Drake <fdrake@acm.org> |
run_suite(): If testclass is not available, provide an even more general error message. run_unittest(): Provide the testclass to run_suite() so it can construct the error message. This closes SF bug #467763.
/external/python/cpython2/Lib/test/test_support.py
|
17111f3b242be06c7ae913f106093891b82d7fee |
|
03-Oct-2001 |
Tim Peters <tim.peters@gmail.com> |
SF bug [#467336] doctest failures w/ new-style classes. Taught doctest about static methods, class methods, and property docstrings in new-style classes. As for inspect.py/pydoc.py before it, the new stuff needed didn't really fit into the old architecture (but was less of a strain to force-fit here). New-style class docstrings still aren't found, but that's the subject of a different bug and I want to fix that right instead of hacking around it in doctest.
/external/python/cpython2/Lib/test/test_support.py
|
8dee809410e2d433bb0be5d8a1699736b90db0b5 |
|
25-Sep-2001 |
Tim Peters <tim.peters@gmail.com> |
Guido points out that sys.__stdout__ is a bit bucket under IDLE. So keep the local save/modify/restore of sys.stdout, but add machinery so that regrtest can tell test_support the value of sys.stdout at the time regrtest.main() started, and test_support can pass that out later to anyone who needs a "visible" stdout.
/external/python/cpython2/Lib/test/test_support.py
|
342ca75d9552ff5c606c465d1392a32e44257fe5 |
|
25-Sep-2001 |
Tim Peters <tim.peters@gmail.com> |
Get rid of the increasingly convoluted global tricks w/ sys.stdout, in favor of local save/modify/restore. The test suite should run fine again.
/external/python/cpython2/Lib/test/test_support.py
|
ad39aba2f67d3e7f4405f84167becab6d18ee9bc |
|
25-Sep-2001 |
Guido van Rossum <guido@python.org> |
Set sys.save_stdout (to sys.stdout), so doctest-using tests can be run standalone.
/external/python/cpython2/Lib/test/test_support.py
|
0a07639779beb496f3d68021fef28e77dbe13af9 |
|
21-Sep-2001 |
Guido van Rossum <guido@python.org> |
Oops. I didn't expect that some tests (test_cookie) have expected output *and* doctest stuff. Assuming the doctest stuff comes after the expected output, this fixes that.
/external/python/cpython2/Lib/test/test_support.py
|
0fcca4e815e3dbb28c73108376079a94ad6ee8de |
|
21-Sep-2001 |
Guido van Rossum <guido@python.org> |
Change the way unexpected output is reported: rather than stopping at the first difference, let the test run till completion, then gather all the output and compare it to the expected output using difflib. XXX Still to do: produce diff output that only shows the sections that differ; currently it produces ndiff-style output because that's the easiest to produce with difflib, but this becomes a liability when the output is voluminous and there are only a few differences.
/external/python/cpython2/Lib/test/test_support.py
|
c88425e2b283b34e2a481c12dccffec4da731cab |
|
20-Sep-2001 |
Barry Warsaw <barry@python.org> |
run_suite(): Oops, update a docstring.
/external/python/cpython2/Lib/test/test_support.py
|
c10d69074467dd54a77ec0b666e6327d3de1e389 |
|
20-Sep-2001 |
Barry Warsaw <barry@python.org> |
run_suite(): Factor this out of run_unittest() for tests that build their own test suite from a multitude of classes (like test_email.py will be doing). run_unittest(): Call run_suite() after making a suite from the testclass.
/external/python/cpython2/Lib/test/test_support.py
|
bea3fb83a76db479bb7c523fd8c16f7bc23f4336 |
|
10-Sep-2001 |
Tim Peters <tim.peters@gmail.com> |
Repair late-night doc typos.
/external/python/cpython2/Lib/test/test_support.py
|
a0a62225094a890c1b07ebc4f89e4c7c45c66b13 |
|
09-Sep-2001 |
Tim Peters <tim.peters@gmail.com> |
Teach regrtest how to pass on doctest failure msgs. This is done via a horridly inefficient hack in regrtest's Compare class, but it's about as clean as can be: regrtest has to set up the Compare instance before importing a test module, and by the time the module *is* imported it's too late to change that decision. The good news is that the more tests we convert to unittest and doctest, the less the inefficiency here matters. Even now there are few tests with large expected-output files (the new cost here is a Python-level call per .write() when there's an expected- output file).
/external/python/cpython2/Lib/test/test_support.py
|
2d84f2c95a59b815ef6864805bb6b04b79d0e106 |
|
08-Sep-2001 |
Tim Peters <tim.peters@gmail.com> |
It appears that unittest was changed to stop hoarding raw exception data, saving instead a traceback string, but test_support's run_unittest was still peeking into unittest internals and trying to pick apart unittest's errors and failures vectors as if they contained exc_info() tuples instead of strings. Whatever, when a unittest-based test failed, test_support blew up. I'm not sure this is the right way to fix it; it simply gets me unstuck.
/external/python/cpython2/Lib/test/test_support.py
|
fe3f6969f54cfd3df24f54572a809e0deb47064f |
|
06-Sep-2001 |
Guido van Rossum <guido@python.org> |
Two small changes to the resource usage option: (1) Allow multiple -u options to extend each other (and the initial value of use_resources passed into regrtest.main()). (2) When a test is run stand-alone (not via regrtest.py), needed resources are always granted.
/external/python/cpython2/Lib/test/test_support.py
|
c0fb605ce3734e7d13301f9a232b12eaa09618ad |
|
21-Aug-2001 |
Barry Warsaw <barry@python.org> |
use_large_resources => use_resources requires(): New function which can be used to `assert' that a specific -u/--use resource flag is present. Raises a TestSkipped if not. This is used in test_largefile and test_socket_ssl to enable external or resource consumptive tests that are normally disabled.
/external/python/cpython2/Lib/test/test_support.py
|
339d0f720e86dc34837547c90d3003a4a68d7d46 |
|
17-Aug-2001 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #445762: Support --disable-unicode - Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled - check for Py_USING_UNICODE in all places that use Unicode functions - disables unicode literals, and the builtin functions - add the types.StringTypes list - remove Unicode literals from most tests.
/external/python/cpython2/Lib/test/test_support.py
|
14f6c18b6250b66777b6e46003c5f37ef6327890 |
|
16-Jul-2001 |
Fred Drake <fdrake@acm.org> |
Give more useful information about a failing PyUnit-style test.
/external/python/cpython2/Lib/test/test_support.py
|
ef8b654bbea15dc55767a7095e01dff7a3ca86cb |
|
13-May-2001 |
Mark Hammond <mhammond@skippinet.com.au> |
Add support for Windows using "mbcs" as the default Unicode encoding when dealing with the file system. As discussed on python-dev and in patch 410465.
/external/python/cpython2/Lib/test/test_support.py
|
2f228e75e4d5ac8c3eb4a6334dbc43243bff1095 |
|
13-May-2001 |
Tim Peters <tim.peters@gmail.com> |
Get rid of the superstitious "~" in dict hashing's "i = (~hash) & mask". The comment following used to say: /* We use ~hash instead of hash, as degenerate hash functions, such as for ints <sigh>, can have lots of leading zeros. It's not really a performance risk, but better safe than sorry. 12-Dec-00 tim: so ~hash produces lots of leading ones instead -- what's the gain? */ That is, there was never a good reason for doing it. And to the contrary, as explained on Python-Dev last December, it tended to make the *sum* (i + incr) & mask (which is the first table index examined in case of collison) the same "too often" across distinct hashes. Changing to the simpler "i = hash & mask" reduced the number of string-dict collisions (== # number of times we go around the lookup for-loop) from about 6 million to 5 million during a full run of the test suite (these are approximate because the test suite does some random stuff from run to run). The number of collisions in non-string dicts also decreased, but not as dramatically. Note that this may, for a given dict, change the order (wrt previous releases) of entries exposed by .keys(), .values() and .items(). A number of std tests suffered bogus failures as a result. For dicts keyed by small ints, or (less so) by characters, the order is much more likely to be in increasing order of key now; e.g., >>> d = {} >>> for i in range(10): ... d[i] = i ... >>> d {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9} >>> Unfortunately. people may latch on to that in small examples and draw a bogus conclusion. test_support.py Moved test_extcall's sortdict() into test_support, made it stronger, and imported sortdict into other std tests that needed it. test_unicode.py Excluced cp875 from the "roundtrip over range(128)" test, because cp875 doesn't have a well-defined inverse for unicode("?", "cp875"). See Python-Dev for excruciating details. Cookie.py Chaged various output functions to sort dicts before building strings from them. test_extcall Fiddled the expected-result file. This remains sensitive to native dict ordering, because, e.g., if there are multiple errors in a keyword-arg dict (and test_extcall sets up many cases like that), the specific error Python complains about first depends on native dict ordering.
/external/python/cpython2/Lib/test/test_support.py
|
559f6680c27f346c89e6dd29ba3235f7719ea6a7 |
|
23-Mar-2001 |
Barry Warsaw <barry@python.org> |
In Jython, `@' is not allowed in module names. Extend the TESTFN test to use "$test" when in Jython. Closes SF patch #403668.
/external/python/cpython2/Lib/test/test_support.py
|
84a5934f8a09b670a8554a9e84f59006bc4c087c |
|
23-Mar-2001 |
Fred Drake <fdrake@acm.org> |
When the regression test is run in verbose mode, make the PyUNIT-based tests a little noisier, providing more progress information.
/external/python/cpython2/Lib/test/test_support.py
|
5ddd1a8dcb260eb8c25d7d27f7623f020648ad70 |
|
22-Mar-2001 |
Steve Purcell <steve@pythonconsulting.com> |
Updated to latest PyUnit version (1.31 in PyUnit CVS); test_support.py changed accordingly.
/external/python/cpython2/Lib/test/test_support.py
|
cd1b1dd6d29f81df560286f4838fefeae0af6cd8 |
|
21-Mar-2001 |
Fred Drake <fdrake@acm.org> |
Just import sys at the top instead of inside lots of functions. Add some helpers for supporting PyUNIT-based unit testing.
/external/python/cpython2/Lib/test/test_support.py
|
a8f7e5976126c4d0a3acef512e75a87b560ac2ec |
|
13-Mar-2001 |
Guido van Rossum <guido@python.org> |
Oops. A RISCOS patch I forgot to check in.
/external/python/cpython2/Lib/test/test_support.py
|
0009c4ea590b5bb4c00c33bc96dca47a42e720f1 |
|
21-Feb-2001 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_support.py
|
4779399e9f4ff6fe7734fa9931aa6df82a98da24 |
|
19-Feb-2001 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Add test for syntax error on "x = 1 + 1". Move check_syntax() function into test_support.
/external/python/cpython2/Lib/test/test_support.py
|
c955f892254359194b3b1c4462156753acc4de90 |
|
20-Jan-2001 |
Skip Montanaro <skip@pobox.com> |
docstring typo
/external/python/cpython2/Lib/test/test_support.py
|
a1374e429b2f9d94320ca1dc0475a845b99659de |
|
19-Jan-2001 |
Guido van Rossum <guido@python.org> |
Change verify() function to raise TestFailed, not AssertionError. (I realize that I didn't really test this, because all the tests succeed, so verify() never raised an AssertionError -- but the test suite still succeeds, so I'm not too worried.)
/external/python/cpython2/Lib/test/test_support.py
|
983874dd32432c1e3237ad5f7bcfc3ab83c10f2c |
|
19-Jan-2001 |
Tim Peters <tim.peters@gmail.com> |
Use constructor form of "raise"; normalize <wink> docstrings.
/external/python/cpython2/Lib/test/test_support.py
|
d2bf3b7ca6f702f54b8e81ea8d194fc116ac6791 |
|
18-Jan-2001 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization. Leaving tokenize_tests.py alone for now.
/external/python/cpython2/Lib/test/test_support.py
|
3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e |
|
17-Jan-2001 |
Marc-André Lemburg <mal@egenix.com> |
This patch removes all uses of "assert" in the regression test suite 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.
/external/python/cpython2/Lib/test/test_support.py
|
132dce22469f476f399d1bbc6d1cc2f7ba0110cc |
|
13-Dec-2000 |
Fred Drake <fdrake@acm.org> |
Update the code to better reflect recommended style: Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
/external/python/cpython2/Lib/test/test_support.py
|
004d5e6880940ddbb38460986ac62ee0f1bae97d |
|
23-Oct-2000 |
Fred Drake <fdrake@acm.org> |
Make reindent.py happy (convert everything to 4-space indents!).
/external/python/cpython2/Lib/test/test_support.py
|
1790dd4b66844bec4dfc27a128d968eda36036cc |
|
24-Jul-2000 |
Fred Drake <fdrake@acm.org> |
Restore TestSkipped exception; appears to have disappeared in last checkin. Make both TextFailed and TestSkipped subclasses of Error, which derives from Exception. Docstrings have been added for the exceptions and module.
/external/python/cpython2/Lib/test/test_support.py
|
4d069231221f5ade1d06d0ae7a81632a45ae3205 |
|
19-Jul-2000 |
Skip Montanaro <skip@pobox.com> |
make TestFailed a class exception
/external/python/cpython2/Lib/test/test_support.py
|
e614fb12a0da06b787e498bfa6a9ef608b123824 |
|
09-Jun-1998 |
Guido van Rossum <guido@python.org> |
Changed runs of 8 spaces to tab -- to satisfy the tab nanny.
/external/python/cpython2/Lib/test/test_support.py
|
e26132cf5e40352f81027f8ab717a45a66cd6367 |
|
23-Apr-1998 |
Guido van Rossum <guido@python.org> |
Move unified findfile() into test_support.py
/external/python/cpython2/Lib/test/test_support.py
|
531661c1aee6a6cbf95b6819d18224c2085cf12f |
|
20-Dec-1996 |
Guido van Rossum <guido@python.org> |
Add verbose flag for regression test to clear.
/external/python/cpython2/Lib/test/test_support.py
|
35fb82a33f4bc78be1f7d219b8ebd078b37c90cb |
|
26-Jan-1993 |
Guido van Rossum <guido@python.org> |
* os.py: _exit doesn't exist in all variations of posix * Added fcmp() to test_support.py and use it in test*.py
/external/python/cpython2/Lib/test/test_support.py
|
3bead0984c802a2f709076bb9c8531fc67f56ee8 |
|
27-Jan-1992 |
Guido van Rossum <guido@python.org> |
Initial revision
/external/python/cpython2/Lib/test/test_support.py
|