summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Make bin() implementation parallel oct() and hex() so that int/long ↵Raymond Hettinger2008-06-201-1/+1
| | | | subclasses can override or so that other classes can support.
* Issue 3048: Fixed sys.sizeof test fails with wide unicode.Robert Schuppenies2008-06-171-2/+1
|
* Fixed: sys.getsizeof does not take the actual length of the tuples into account.Robert Schuppenies2008-06-131-0/+3
|
* Issue 3048: Fixed sys.getsizeof for unicode objects.Robert Schuppenies2008-06-101-7/+28
|
* Fix test_sys.Robert Schuppenies2008-06-011-2/+0
|
* Some style nits. Also clarify in the docstrings what __sizeof__ does.Georg Brandl2008-06-011-11/+11
|
* Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.Robert Schuppenies2008-06-011-2/+149
|
* New environment variable PYTHONIOENCODING.Martin v. Löwis2008-06-011-0/+20
|
* Fix sys.flags to properly expose bytes_warning.Brett Cannon2008-05-081-1/+1
| | | | Closes issue #2790.
* Temporarily disable this test. It's been broken for a week.Raymond Hettinger2008-02-091-15/+15
|