summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
Commit message (Collapse)AuthorAgeFilesLines
* merge 2.6 with hash randomization fixBenjamin Peterson2012-02-211-1/+1
|\
| * - Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEEDBarry Warsaw2012-02-211-1/+1
| | | | | | | | | | | | 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.
| * Merged revisions 77942,79023 via svnmerge fromEzio Melotti2010-08-021-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77942 | ezio.melotti | 2010-02-03 07:37:26 +0200 (Wed, 03 Feb 2010) | 1 line #7092: Silence more py3k warnings. Patch by Florent Xicluna. ........ r79023 | ezio.melotti | 2010-03-17 15:52:48 +0200 (Wed, 17 Mar 2010) | 1 line #7092: silence some more py3k warnings. ........
| * Merged revisions 81537 via svnmerge fromVictor Stinner2010-05-251-0/+20
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81537 | victor.stinner | 2010-05-26 00:30:32 +0200 (mer., 26 mai 2010) | 3 lines Issue #3798: Write sys.exit() message to sys.stderr to use stderr encoding and error handler, instead of writing to the C stderr file in utf-8 ........
| * Merged revisions 78835-78837,78870 via svnmerge fromVictor Stinner2010-03-211-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78835 | victor.stinner | 2010-03-11 13:34:39 +0100 (jeu., 11 mars 2010) | 7 lines Issue #7774: Set sys.executable to an empty string if argv[0] has been set to an non existent program name and Python is unable to retrieve the real program name. Fix also sysconfig: if sys.executable is an empty string, use the current working directory. ........ r78836 | victor.stinner | 2010-03-11 14:27:35 +0100 (jeu., 11 mars 2010) | 4 lines Fix test_executable introduce in previous commit (r78835): Windows is able to retrieve the absolute Python path even if argv[0] has been set to a non existent program name. ........ r78837 | victor.stinner | 2010-03-11 14:46:06 +0100 (jeu., 11 mars 2010) | 3 lines Another fix to test_executable() of test_sys: set the current working to avoid the #7774 bug. ........ r78870 | victor.stinner | 2010-03-12 15:30:26 +0100 (ven., 12 mars 2010) | 1 line NEWS: issue #7774 is related to Library (sys), not Core and Builtins ........
| * Merged revisions 77989 via svnmerge fromAntoine Pitrou2010-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77989 | antoine.pitrou | 2010-02-05 18:05:54 +0100 (ven., 05 févr. 2010) | 6 lines Issue #5677: Explicitly forbid write operations on read-only file objects, and read operations on write-only file objects. On Windows, the system C library would return a bogus result; on Solaris, it was possible to crash the interpreter. Patch by Stefan Krah. ........
| * Merged revisions 77892 via svnmerge fromVictor Stinner2010-01-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77892 | victor.stinner | 2010-01-31 23:32:15 +0100 (dim., 31 janv. 2010) | 4 lines Issue #7819: Check sys.call_tracing() arguments types. py3k was already patched by issue #3661. ........
| * Merged revisions ↵Georg Brandl2009-04-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70866-70868,70870-70871,70893,70896,70902,70905,70907,70912,70915,70927,70933,70940,70944,70954,70963,70998,71056 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70866 | georg.brandl | 2009-03-31 21:06:57 +0200 (Di, 31 Mär 2009) | 1 line #4882: document named group behavior a bit better. ........ r70867 | georg.brandl | 2009-03-31 21:10:35 +0200 (Di, 31 Mär 2009) | 1 line #1096310: document usage of sys.__std*__ a bit better. ........ r70868 | georg.brandl | 2009-03-31 21:12:17 +0200 (Di, 31 Mär 2009) | 1 line #5190: export make_option in __all__. ........ r70870 | georg.brandl | 2009-03-31 21:26:24 +0200 (Di, 31 Mär 2009) | 1 line #4411: document mro() and __mro__. (I hope I got it right.) ........ r70871 | georg.brandl | 2009-03-31 21:30:56 +0200 (Di, 31 Mär 2009) | 1 line #5618: fix typo. ........ r70893 | georg.brandl | 2009-03-31 22:56:32 +0200 (Di, 31 Mär 2009) | 1 line #1530012: move TQS section before raw strings. ........ r70896 | georg.brandl | 2009-03-31 23:15:33 +0200 (Di, 31 Mär 2009) | 1 line #5598: document DocFileSuite *args argument. ........ r70902 | georg.brandl | 2009-03-31 23:43:03 +0200 (Di, 31 Mär 2009) | 1 line #1675026: add a note about a strange Windows problem, and remove notes about AtheOS. ........ r70905 | georg.brandl | 2009-04-01 00:03:40 +0200 (Mi, 01 Apr 2009) | 1 line #5563: more documentation for bdist_msi. ........ r70907 | georg.brandl | 2009-04-01 00:18:19 +0200 (Mi, 01 Apr 2009) | 1 line #3427: document correct return type for urlopen().info(). ........ r70912 | georg.brandl | 2009-04-01 00:35:46 +0200 (Mi, 01 Apr 2009) | 1 line #5617: add a handy function to print a unicode string to gdbinit. ........ r70915 | georg.brandl | 2009-04-01 00:40:16 +0200 (Mi, 01 Apr 2009) | 1 line #5018: remove confusing paragraph. ........ r70927 | georg.brandl | 2009-04-01 01:01:27 +0200 (Mi, 01 Apr 2009) | 1 line Dont shout to users. ........ r70933 | georg.brandl | 2009-04-01 02:04:33 +0200 (Mi, 01 Apr 2009) | 2 lines Issue #5635: Fix running test_sys with tracing enabled. ........ r70940 | georg.brandl | 2009-04-01 06:21:14 +0200 (Mi, 01 Apr 2009) | 2 lines The SimpleXMLRPCServer's CGI handler now runs like a pony. ........ r70944 | georg.brandl | 2009-04-01 06:32:39 +0200 (Mi, 01 Apr 2009) | 1 line #5631: add upload to list of possible commands, which is presented in --help-commands. ........ r70954 | georg.brandl | 2009-04-01 17:23:43 +0200 (Mi, 01 Apr 2009) | 1 line Fix test_xmlrpc and make the CGI handler work with no CONTENT_LENGTH. ........ r70963 | georg.brandl | 2009-04-01 19:46:01 +0200 (Mi, 01 Apr 2009) | 1 line #5655: fix docstring oversight. ........ r70998 | georg.brandl | 2009-04-01 23:54:21 +0200 (Mi, 01 Apr 2009) | 1 line In Pdb, stop assigning values to __builtin__._ which interferes with the one commonly installed by gettext. ........ r71056 | georg.brandl | 2009-04-02 19:43:07 +0200 (Do, 02 Apr 2009) | 2 lines Actually the displayhook should print the repr. ........
* | Document absoluteness of sys.executablePetri Lehtinen2012-02-021-0/+3
| | | | | | | | Closes #13402.
* | Issue #13546: Fixed an overflow issue that could crash the intepreter whenAmaury Forgeot d'Arc2011-12-071-0/+12
| | | | | | | | | | | | calling sys.setrecursionlimit((1<<31)-1). 2.7 only.
* | Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-6/+6
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* | Redo r83142 merge manually. QOTD: svnmerge isn't really your best friendAlexander Belopolsky2010-07-281-2/+2
| |
* | Reverted r83142: bad svnmergeAlexander Belopolsky2010-07-281-2/+2
| |
* | Merged revisions 83140-83141 via svnmerge fromAlexander Belopolsky2010-07-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83140 | alexander.belopolsky | 2010-07-25 11:02:55 -0400 (Sun, 25 Jul 2010) | 5 lines Issue #9315: Renamed test_trace to test_sys_settrace and test_profilehooks to test_sys_setprofile so that test_trace can be used for testing the trace module and for naming consistency. ........ r83141 | alexander.belopolsky | 2010-07-25 11:05:42 -0400 (Sun, 25 Jul 2010) | 1 line Corrected comments on where settrace and setprofile are tested. ........
* | Issue #3798: Write sys.exit() message to sys.stderr to use stderr encoding andVictor Stinner2010-05-251-0/+20
| | | | | | | | error handler, instead of writing to the C stderr file in utf-8
* | Issue #8268: Old-style classes (not just instances) now support weakAntoine Pitrou2010-03-311-1/+1
| | | | | | | | references.
* | Backported PyCapsule from 3.1, and converted most uses ofLarry Hastings2010-03-251-0/+1
| | | | | | | | CObject to PyCapsule.
* | Add support for weak references to code objects. This will be used by an ↵Collin Winter2010-03-181-1/+1
| | | | | | | | | | | | optimization in the incoming Python 3 JIT. Patch by Reid Kleckner!
* | #7092: silence some more py3k warnings.Ezio Melotti2010-03-171-2/+4
| |
* | Another fix to test_executable() of test_sys: set the current working to avoidVictor Stinner2010-03-111-1/+4
| | | | | | | | the #7774 bug.
* | Fix test_executable introduce in previous commit (r78835): Windows is able toVictor Stinner2010-03-111-2/+2
| | | | | | | | | | retrieve the absolute Python path even if argv[0] has been set to a non existent program name.
* | Issue #7774: Set sys.executable to an empty string if argv[0] has beenVictor Stinner2010-03-111-0/+11
| | | | | | | | | | | | | | | | set to an non existent program name and Python is unable to retrieve the real program name. Fix also sysconfig: if sys.executable is an empty string, use the current working directory.
* | Remove unused imports in test modules.Georg Brandl2010-02-071-2/+2
| |
* | Issue #5677: Explicitly forbid write operations on read-only file objects,Antoine Pitrou2010-02-051-1/+1
| | | | | | | | | | | | and read operations on write-only file objects. On Windows, the system C library would return a bogus result; on Solaris, it was possible to crash the interpreter. Patch by Stefan Krah.
* | Issue #7819: Check sys.call_tracing() arguments types.Victor Stinner2010-01-311-0/+4
| | | | | | | | py3k was already patched by issue #3661.
* | Added named (but not numbered) attributes to sys.getwindowsversion() test.Eric Smith2010-01-271-0/+4
| |
* | Switch to test_support.get_attribute.Eric Smith2010-01-271-23/+24
| |
* | Removed unneeded test.Eric Smith2010-01-271-1/+0
| |
* | Issue #7766: Change sys.getwindowsversion() return value to a named tuple ↵Eric Smith2010-01-271-1/+17
| | | | | | | | and add the additional members returned in an OSVERSIONINFOEX structure. The new members are service_pack_major, service_pack_minor, suite_mask, and product_type.
* | use assert[Not]IsInstance where appropriateEzio Melotti2010-01-241-29/+29
| |
* | use assert[Not]In where appropriateEzio Melotti2010-01-231-9/+8
| |
* | Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-9/+3
| | | | | | | | mistake. ( It may come in for sure tough)
* | Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-3/+9
| | | | | | | | Patch by flox
* | Fix transient refleak in test_sys.Antoine Pitrou2009-10-271-2/+6
| |
* | Issue #7117 (backport py3k float repr) continued:Mark Dickinson2009-10-241-0/+2
| | | | | | | | | | Add sys.float_repr_style attribute ('short' if short float repr is in used; 'legacy' otherwise).
* | convert usage of fail* to assert*Benjamin Peterson2009-06-301-59/+59
| |
* | sys.long_info attributes should be ints, not longsMark Dickinson2009-04-021-3/+5
| |
* | Issue #5635: Fix running test_sys with tracing enabled.Georg Brandl2009-04-011-0/+5
| |
* | Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.Mark Dickinson2009-03-201-5/+10
| | | | | | | | Backport of r70459.
* | Issue #5260: Various portability and standards compliance fixes, optimizationsMark Dickinson2009-02-151-6/+6
| | | | | | | | | | | | | | and cleanups in Objects/longobject.c. The most significant change is that longs now use less memory: average savings are 2 bytes per long on 32-bit systems and 6 bytes per long on 64-bit systems. (This memory saving already exists in py3k.)
* | Implement issue #4285, convert sys.version_info to a namedEric Smith2009-02-061-1/+13
| | | | | | | | tuple. Patch by Ross Light.
* | Issue #4445: save 3 bytes (on average, on a typical machine) perMark Dickinson2008-12-051-2/+2
|/ | | | string allocation.
* Fixed test failure on Win64 machines.Robert Schuppenies2008-07-141-8/+5
|
* Added garbage collector overhead and optional default return value toRobert Schuppenies2008-07-101-0/+23
| | | | sys.getsizeof.
* Added additional __sizeof__ implementations and addressed comments made inRobert Schuppenies2008-07-101-18/+47
| | | | Issue3122.
* Fixed Issue3122 and extended sys.getsizeof tests for built-in types.Robert Schuppenies2008-07-101-67/+172
|
* remove test_compact_freelists from test_sysBenjamin Peterson2008-07-061-19/+0
|
* Corrected inconsistencies in sizeof tests and addressed issue pointedRobert Schuppenies2008-06-261-12/+12
| | | | out by Jean Brouwers.
* Issue 3147: Fixed SizeofTest failure for LLP64 systems.Robert Schuppenies2008-06-251-71/+60
|
* Revert 64424, 64438, and 64439.Raymond Hettinger2008-06-241-1/+1
|