summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Small adjustments for test compact freelist test. It's no passing on Windows ↵Christian Heimes2008-02-041-5/+5
| | | | as well.
* Increase debugging to investige failing tests on some build botsChristian Heimes2008-02-041-0/+3
|
* Patch #1953Christian Heimes2008-02-041-0/+18
| | | | | I implemented the function sys._compact_freelists() and C API functions PyInt_/PyFloat_CompactFreeList() to compact the pre-allocated blocks of ints and floats. They allow the user to reduce the memory usage of a Python process that deals with lots of numbers. The patch also renames sys._cleartypecache to sys._clear_type_cache
* Typo fixesAndrew M. Kuchling2008-01-151-1/+1
|
* Now that I've learnt about structseq objects I felt like converting ↵Christian Heimes2008-01-141-1/+1
| | | | | | sys.float_info to a structseq. It's readonly and help(sys.float_info) explains the attributes nicely.
* Applied patch #1816: sys.flags patchChristian Heimes2008-01-141-0/+12
|
* Feature #1534Christian Heimes2007-12-011-0/+2
| | | | | Added PyFloat_GetMax(), PyFloat_GetMin() and PyFloat_GetInfo() to the float API. Added a dictionary sys.float_info with information about the internal floating point type to the sys module.
* current_frames_with_threads(): There's actually no wayTim Peters2006-07-251-3/+4
| | | | | | | | | | | to guess /which/ line the spawned thread is in at the time sys._current_frames() is called: we know it finished enter_g.set(), but can't know whether the instruction counter has advanced to the following leave_g.wait(). The latter is overwhelming most likely, but not guaranteed, and I see that the "x86 Ubuntu dapper (icc) trunk" buildbot found it on the other line once. Changed the test so it passes in either case.
* SF bug 1524317: configure --without-threads fails to buildTim Peters2006-07-191-0/+22
| | | | | | | | | | | | | | | | | | Moved the code for _PyThread_CurrentFrames() up, so it's no longer in a huge "#ifdef WITH_THREAD" block (I didn't realize it /was/ in one). Changed test_sys's test_current_frames() so it passes with or without thread supported compiled in. Note that test_sys fails when Python is compiled without threads, but for an unrelated reason (the old test_exit() fails with an indirect ImportError on the `thread` module). There are also other unrelated compilation failures without threads, in extension modules (like ctypes); at least the core compiles again. Do we really support --without-threads? If so, there are several problems remaining.
* After approval from Anthony, merge the tim-current_framesTim Peters2006-07-101-0/+61
| | | | | | branch into the trunk. This adds a new sys._current_frames() function, which returns a dict mapping thread id to topmost thread stack frame.
* Add test case for #43581.Martin v. Löwis2006-04-031-0/+5
|
* Disable a few other tests, that can't work if Python is compiled withoutWalter Dörwald2005-08-031-1/+2
| | | | Unicode support.
* Whitespace normalization.Tim Peters2005-02-151-2/+2
|
* Test that SystemExits are handled properly by the exit machinery. IMichael W. Hudson2005-02-151-0/+12
| | | | | broke the "raise SystemExit(46)" case when doing new-style exceptions, but I'd much rather have found out here than in test_tempfile (growl).
* New function sys.getcheckinterval(), to complement setcheckinterval().Tim Peters2003-07-061-2/+4
|
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-3/+1
| | | | | | | | | | 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.
* Reindent the new code properly.Guido van Rossum2003-03-011-22/+22
|
* - New function sys.exc_clear() clears the current exception. This isGuido van Rossum2003-03-011-0/+44
| | | | | | rarely needed, but can sometimes be useful to release objects referenced by the traceback held in sys.exc_info()[2]. (SF patch #693195.) Thanks to Kevin Jacobs!
* Whitespace normalization.Tim Peters2003-02-191-10/+10
|
* Fix SF bug #688424, 64-bit test problemsNeal Norwitz2003-02-181-1/+1
|
* Fix typo.Walter Dörwald2003-02-031-1/+1
|
* Add a new test script that tests various features of the sysWalter Dörwald2003-02-031-0/+211
module. This increases code coverage of Python/sysmodule.c from 68% to 77% (on Linux). The script doesn't exercise the error branch that handles an evil or lost sys.excepthook in Python/pythonrun.c::PyErr_PrintEx(). Also this script might not work on Jython in its current form. From SF patch #662807.