Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | test_three_lines(): Test case reported by Andrew McNamara. Works in | Barry Warsaw | 2002-08-20 | 1 | -0/+8 |
| | | | | email 2.2 but fails in email 1.0. | ||||
* | Fix typo in __slots__ of ImmutableSet. | Guido van Rossum | 2002-08-19 | 1 | -1/+1 |
| | |||||
* | Set classes and their unit tests, from sandbox. | Guido van Rossum | 2002-08-19 | 2 | -0/+1097 |
| | |||||
* | Added __pow__(a,b) to the operator module. Completes the pattern of | Raymond Hettinger | 2002-08-19 | 1 | -0/+6 |
| | | | | | | all operators having a counterpart in the operator module. Closes SF bug #577513. | ||||
* | Modify splituser() method to allow an @ in the userinfo field. | Raymond Hettinger | 2002-08-18 | 1 | -1/+1 |
| | | | | | | | Jeremy reported that this is not allowed by RFC 2396; however, other tools support unescaped @'s so we should also. Apply SF patch 596581 closing bug 581529. | ||||
* | OS/2 EMX behaves like Windows where file permissions are concerned | Andrew MacIntyre | 2002-08-18 | 1 | -2/+2 |
| | |||||
* | Get rid of _once(); inlining it takes less code. :-) | Guido van Rossum | 2002-08-17 | 2 | -97/+41 |
| | | | | | | | Also, don't call gettempdir() in the default expression for the 'dir' argument to various functions; use 'dir=None' for the default and insert 'if dir is None: dir = gettemptir()' in the bodies. That way the work done by gettempdir is postponed until needed. | ||||
* | Patch by Zack W to make test_noinherit() more robust: spawn a Python | Guido van Rossum | 2002-08-17 | 2 | -28/+48 |
| | | | | | subprocess that does the right checks. This now works on Windows as well. | ||||
* | Drop the number of test files to 100 for all the tests | Neal Norwitz | 2002-08-16 | 1 | -4/+8 |
| | |||||
* | SF bug 594996: OverflowError in random.randrange | Tim Peters | 2002-08-16 | 1 | -4/+17 |
| | | | | | | Loosened the acceptable 'start' and 'stop' arguments so that any Python (bounded) ints can be used. So, e.g., randrange(-sys.maxint-1, sys.maxint) no longer blows up. | ||||
* | check_events(): This was failing under -O, due to not expecting any | Tim Peters | 2002-08-16 | 1 | -3/+0 |
| | | | | | LINE events when not __debug__. But we get them anyway under -O now, so just stop special-casing non-__debug__ mode. | ||||
* | base64.decodestring('') should return '' instead of raising an | Barry Warsaw | 2002-08-15 | 1 | -6/+1 |
| | | | | | exception. The bug fix for SF #430849 wasn't quite right. This closes SF bug #595671. I'll backport this to Python 2.2. | ||||
* | This is my patch | Michael W. Hudson | 2002-08-15 | 5 | -42/+47 |
| | | | | | | | | [ 587993 ] SET_LINENO killer Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab. Many sundry changes to document and adapt to this change. | ||||
* | forgot the best part - the new tests... | Skip Montanaro | 2002-08-15 | 1 | -0/+32 |
| | | | | see patch 586561 | ||||
* | Docstring nits: The module is neither proposed nor new. | Jeremy Hylton | 2002-08-14 | 1 | -1/+1 |
| | |||||
* | More changes of DeprecationWarning to FutureWarning. | Guido van Rossum | 2002-08-14 | 2 | -2/+2 |
| | |||||
* | Explain use of currentThread() in _Condition methods. | Jeremy Hylton | 2002-08-14 | 1 | -2/+2 |
| | |||||
* | The filterwarnings() call here should be updated to filter out | Guido van Rossum | 2002-08-14 | 1 | -1/+1 |
| | | | | FutureWarning. | ||||
* | Explain a little more. | Jeremy Hylton | 2002-08-14 | 1 | -0/+1 |
| | |||||
* | Explain a minor mystery. | Jeremy Hylton | 2002-08-14 | 1 | -0/+1 |
| | |||||
* | tempfile's mkstemp(): Changed last argument from | Tim Peters | 2002-08-14 | 2 | -11/+11 |
| | | | | | | | | | | binary=True to text=False by BDFL Pronouncement. All other changes follow from this. The change to the docs is ready to go, but blocked by another JackMacLock in the doc directory. | ||||
* | Patch #595014: Cygwin tempfile patch | Jason Tishler | 2002-08-14 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | Although Cygwin attempts to be as Posix compliant as possible, it has difficulties unlinking open files. This is not surprising given that Cygwin is dependent on Win32 which in turn has this problem itself. The attached tempfile patch acknowledges this Cygwin limitation. Without this patch, Cygwin fails test_tempfile (i.e., test_has_no_name) as follows: $ ./python -E -tt ../Lib/test/regrtest.py -l test_tempfile test_tempfile test test_tempfile failed -- Traceback (most recent call last): File "/home/jt/src/PythonCvs/Lib/test/test_tempfile.py", line 689, in test_has_no_name self.failOnException("rmdir", ei) File "/home/jt/src/PythonCvs/Lib/test/test_tempfile.py", line 33, in failOnException self.fail("%s raised %s: %s" % (what, ei[0], ei[1])) File "/home/jt/src/PythonCvs/Lib/unittest.py", line 260, in fail raise self.failureException, msg AssertionError: rmdir raised exceptions.OSError: [Errno 90] Directory not empty: '/mnt/c/DOCUME~1/jatis/LOCALS~1/Temp/tmpM_z8nj' | ||||
* | Patch by Tim to shut up the compiler's DeprecationWarnings on the | Barry Warsaw | 2002-08-14 | 1 | -18/+9 |
| | | | | high-bit-set hex constants. | ||||
* | test_many(): open only 100 temp files, not 1000. Some systems don't | Guido van Rossum | 2002-08-14 | 1 | -1/+1 |
| | | | | | allow that many open files per process. I don't see that 1000 makes any difference for the test. | ||||
* | Check for trailing backslash. Fixes #593656. | Martin v. Löwis | 2002-08-14 | 1 | -0/+1 |
| | |||||
* | Patch #505705: Remove eval in pickle and cPickle. | Martin v. Löwis | 2002-08-14 | 3 | -6/+36 |
| | |||||
* | tightening up a few except: clauses | Skip Montanaro | 2002-08-14 | 1 | -3/+3 |
| | | | | see bug 411881 | ||||
* | runtest(): I don't know why we don't just use TESTFN, but if we have to | Tim Peters | 2002-08-14 | 1 | -4/+5 |
| | | | | | | | | | | | | | do bizarre things to get a temp file, I changed it to use mkstemp instead of NamedTemporaryFile. This tried to leave the file open while passing its name to execfile(). On Win2K (but not Win9X), though, a file created with O_TEMPORARY cannot be opened again, so the test failed with a permission error when execfile tried to open it. Closer to the truth: a file created with O_TEMPORARY can be opened again, but only if the file is also created with SHARE_DELETE access via the Win32 CreateFile() function. There's no way to get at that from MS's version of libc, though (we'd have to ditch the "std" C file functions in favor of Win32 API calls). | ||||
* | mkstemp(): Repaired error in docstring (the sense of the 'binary' flag | Tim Peters | 2002-08-14 | 1 | -2/+2 |
| | | | | was reversed). | ||||
* | mkstemp(): The optional "binary" argument is clearly intended to be a | Tim Peters | 2002-08-13 | 1 | -1/+1 |
| | | | | Boolean, so changed its default value from 1 to True. | ||||
* | NamedTemporaryFile(), TemporaryFile(): removed needless local vrbl 'bin'. | Tim Peters | 2002-08-13 | 1 | -6/+8 |
| | |||||
* | template: removed special-casing for NT; there isn't an 8-character limit. | Tim Peters | 2002-08-13 | 1 | -4/+1 |
| | |||||
* | _once(): Removed obfuscating aliasing of _once_lock. | Tim Peters | 2002-08-13 | 1 | -4/+2 |
| | |||||
* | _once(): Simplified dict manipulation. | Tim Peters | 2002-08-13 | 1 | -2/+2 |
| | |||||
* | Added a test specifically to tickle Karatsuba; it costs no appreciable | Tim Peters | 2002-08-13 | 1 | -0/+26 |
| | | | | runtime. | ||||
* | Add a missing call to _strclass(). | Jeremy Hylton | 2002-08-13 | 1 | -1/+1 |
| | |||||
* | Add tests for including __dict__ and/or __weakref__ in __slots__. | Guido van Rossum | 2002-08-13 | 1 | -1/+50 |
| | | | | Add some more rigor to slotmultipleinheritance(). | ||||
* | SF bug #574235, convert_path fails with empty pathname | Neal Norwitz | 2002-08-13 | 1 | -2/+4 |
| | |||||
* | Add test for SF bug # 575229, multiple inheritance w/ slots dumps core | Neal Norwitz | 2002-08-13 | 1 | -0/+11 |
| | | | | Fix already checked in by Guido | ||||
* | Remove ugly irregular spaces from in front of some comments. | Fred Drake | 2002-08-13 | 1 | -3/+3 |
| | |||||
* | Bug #556025: list(xrange(1e9)) --> seg fault | Jason Tishler | 2002-08-13 | 1 | -0/+5 |
| | | | | | | | | | Close the bug report again -- this time for Cygwin due to a newlib bug. See the following for the details: http://sources.redhat.com/ml/newlib/2002/msg00369.html Note that this commit is only a documentation (i.e., comment) change. | ||||
* | test_division(): Added one larger digits value, to ensure that the | Tim Peters | 2002-08-13 | 1 | -1/+2 |
| | | | | "lopsided Karatsuba" driver also gets some exercise. | ||||
* | Machines-- and Python --are a lot faster in relevant ways since this | Tim Peters | 2002-08-13 | 1 | -3/+5 |
| | | | | | | test was written. So boosted the number of "digits" this generates, and also beefed up the "* / divmod" test to tickle numbers big enough to trigger the Karatsuba algorithm. It takes about 2 seconds now on my box. | ||||
* | Fix wanrings about unsigned hex constants. | Guido van Rossum | 2002-08-12 | 1 | -2/+2 |
| | |||||
* | Don't use hex constants representing negative numbers. | Guido van Rossum | 2002-08-12 | 1 | -1/+1 |
| | |||||
* | Suppress warnings about test_grammar.py that can't be suppressed inside | Guido van Rossum | 2002-08-12 | 1 | -0/+6 |
| | | | | that file itself (because it's the parser that reports them). | ||||
* | Make sure that *any* object whose id() is used as a memo key is kept | Guido van Rossum | 2002-08-12 | 1 | -2/+1 |
| | | | | alive in the memo. This fixes SF bug 592567. | ||||
* | Portable way of producing unsigned 32-bit hex output to print the | Guido van Rossum | 2002-08-12 | 1 | -2/+4 |
| | | | | CRCs. | ||||
* | Shut up warnings about hex()/oct() that can't be avoided. | Guido van Rossum | 2002-08-12 | 2 | -0/+8 |
| | |||||
* | Avoid warnings about <<. external_attr is now an unsigned long. | Guido van Rossum | 2002-08-12 | 1 | -2/+2 |
| |