summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Added a banner to the shell startup message discussing possibleKurt B. Kaiser2003-07-273-2/+26
| | | | | | | | | warnings from personal firewall software. Added the same text to README.txt, updated NEWS.txt for release. M NEWS.txt M PyShell.py M README.txt
* Update for release.Kurt B. Kaiser2003-07-271-1/+1
|
* Fixes bug of having default argument for TimeRE's __init__ that caused theBrett Cannon2003-07-241-2/+5
| | | | | LocaleTime instance to only be created once and thus not be recreated when the locale changed.
* Remove caching of TimeRE (and thus LocaleTime) instance. Error was beingBrett Cannon2003-07-242-48/+23
| | | | | | caught when executing test_strptime, test_logging, and test_time in that order when the testing of "%c" occured. Suspect the cache was not being recreated (the test passed when test_logging was forced to re-establish the locale).
* 1. Python Bug 775541: Calltips error when docstring is None. IntroducedKurt B. Kaiser2003-07-233-4/+12
| | | | | | by patch 769142. Fixed by patch 776062. KBK will backport net result to IDLE release22-maint and IDLEfork. 2. Update NEWS.txt and idlever for release.
* Restored commented-out line checked in by mistake.Tim Peters2003-07-231-1/+1
|
* locale-restoration code: Don't leave comparison to None implicit. ForTim Peters2003-07-232-2/+2
| | | | | all I know, the original locale may be '' (I don't think that's possible, but ...), and if so we would certainly want to restore it.
* Fred wasn't kidding -- there really are docs for the locale module <wink>.Tim Peters2003-07-231-11/+20
| | | | | | | | | | | | | | Obtain the original locale in the documented way. This way actually works for me. Restore the original locale at the end, instead of forcing to "C". Move the locale fiddling into the test driver instead of doing it as a side effect of merely importing the module. I don't know why the test is mucking with locale (and also added a comment saying so), but it surely has no justification for doing that as an import side-effect. Now whenever the locale-changing code executes, the locale-restoring code will also get run.
* Fix error in test of not comparing against 0 item of a listBrett Cannon2003-07-221-1/+1
|
* Patch #775784: YA Cygwin expected regression test skip patchJason Tishler2003-07-221-0/+1
| | | | This patch just adds test_ioctl to the list of expected skips for Cygwin.
* Change the zipimport implementation to accept files containingThomas Heller2003-07-221-1/+20
| | | | | | | | | arbitrary bytes before the actual zip compatible archive. Zipfiles containing comments at the end of the file are still not supported. Add a testcase to test_zipimport, and update NEWS. This closes sf #775637 and sf #669036.
* more generic reference to python interpreterSkip Montanaro2003-07-221-1/+1
|
* Windows fix: When PYTHONCASEOK is set, or for any other reason importsTim Peters2003-07-221-3/+9
| | | | | | | | | | are satisfied in a case-insensitive manner, the attempt to import (the non-existent) fcntl gets satisfied by FCNTL.py instead, and the tempfile module defines a Unix-specific _set_cloexec() function in that case. As a result, temp files can't be created then (blows up with an AttributeError trying to reference fcntl.fcntl). This just popped up in the spambayes project, where there is no apparent workaround (which is why I'm pushing this in now).
* readerThread(): Add max_retries to both DeadlockWrap() calls. ThisBarry Warsaw2003-07-211-2/+2
| | | | may cause some tests to fail but it prevents them from hanging.
* Backport from r23c1-branch:Jack Jansen2003-07-211-2/+2
| | | | | Pimp crashed if you tried to install a non-installable package, in stead of printing a decent error message. Fixes #773450..
* test01_join(): Fix a test failure when run with "python -O". TheBarry Warsaw2003-07-211-1/+4
| | | | setting of sCursor happened in an assert.
* Repair operator error.Jeremy Hylton2003-07-181-8/+3
|
* SF patch 773476: NameError when there are no prefixes.Jeremy Hylton2003-07-181-3/+9
|
* up the b/w compatibility requirement to 2.2Just van Rossum2003-07-181-1/+1
|
* Make sure mimetypes is reinitialized before running the tests.Jeremy Hylton2003-07-181-0/+1
| | | | | If some other test comes along and uses mimetypes, it will be initialized from the system files.
* Restore the locale to "C" on exit.Jeremy Hylton2003-07-181-2/+5
| | | | | | If this doesn't happen, it leaves the locale in a state that can cause other tests to fail. For example, running test_strptime, test_logging, and test_time in that order.
* Reflow long line.Jeremy Hylton2003-07-171-2/+2
|
* back out the darwin supports_unicode_filenames patch; it causes deep ↵Just van Rossum2003-07-171-4/+1
| | | | problems with the tests
* Patch from John Anderson to enable VC 7.1 support.Jeremy Hylton2003-07-171-12/+27
| | | | I tested against VC 7.0 and it caused no problems there.
* Doctest now examines all docstrings by default. Previously, it wouldRaymond Hettinger2003-07-161-19/+28
| | | | | | | | | | | | skip over functions with private names (as indicated by the underscore naming convention). The old default created too much of a risk that user tests were being skipped inadvertently. Note, this change could break code in the unlikely case that someone had intentionally put failing tests in the docstrings of private functions. The breakage is easily fixable by specifying the old behavior when calling testmod() or Tester(). The more likely case is that the silent failure was unintended and that the user needed to be informed so the test could be fixed.
* Exercise Jim Fulton's new doctest extension for running doctests in aRaymond Hettinger2003-07-161-2/+5
| | | | | unittest environment. Since his extension finds docstrings in private functions, it exposed a bug in the difflib doctests.
* Fix faulty doctests. There is no results attribute.Raymond Hettinger2003-07-161-5/+6
| | | | | Note, these tests were not getting exercised because doctest skips over private functions.
* Extend last change to cover TestSuites as well as TestCases.Raymond Hettinger2003-07-161-1/+1
|
* Prevent failure on the mac, where "mbcs" is not the file systemMark Hammond2003-07-161-2/+3
| | | | encoding. Use sys.getfilesystemencoding().
* Update to reflect the current status of the configuration system.Kurt B. Kaiser2003-07-166-85/+74
| | | | | | | | | | | | | | | Extensions must still be configured manually and there is currently one set of extension key bindings for all platforms. Bring NEWS.txt up to date. Update CREDITS.txt and idlever.py for release. M NEWS.txt M config-extensions.def M extend.txt M help.txt M idlever.py
* run_unittest() to support TestCase instances as well as classes. Helps with ↵Raymond Hettinger2003-07-161-1/+4
| | | | doctests.
* Fixed test and converted to unittest format.Raymond Hettinger2003-07-151-1/+0
| | | | | Checking // would call floor division but did not test that true division had become the default with 'from __future__ import division'.
* Fixed test and converted to unittest format.Raymond Hettinger2003-07-151-6/+25
| | | | | Checking // would call floor division but did not test that true division had become the default with 'from __future__ import division'.
* SF patch 763201: handling of SyntaxErrors in symbol table buildJeremy Hylton2003-07-152-3/+30
| | | | Bug fix candidate.
* Add various test cases from SF patch 543867.Walter Dörwald2003-07-151-1/+58
|
* Make the prefix 7 spaces long, so the lines are properly aligned.Walter Dörwald2003-07-151-1/+1
|
* stylistic nits:Fred Drake2003-07-141-6/+8
| | | | | | - wrap some long lines - shorten others - fix indentation
* Give dumbdbm a sync() method which Shelve can call. Should solve someSkip Montanaro2003-07-141-0/+2
| | | | database corruption problems with Spambayes.
* SF bug #770601: CGIHTTPServer and environment variables (bug + solution)Raymond Hettinger2003-07-141-1/+1
| | | | | | | (contributed by Vincent Delft.) The script updated os.environ but failed to pass the whole environment to the child process (the CGI script).
* Make close() identical to __del__() for a dumbdbm database. MakeTim Peters2003-07-132-5/+12
| | | | | | | closing idempotent (it used to raise a nuisance exception on the 2nd close attempt). Bugfix candidate? Probably, but arguable.
* SF patch #765238: fix fnmatch.__all__Raymond Hettinger2003-07-131-1/+1
| | | | (Contributed by George Yoshida.)
* delete unused local variable (pychecker caught)Skip Montanaro2003-07-131-1/+1
|
* SF bug #769142: CallTip trimming may loop forever.Raymond Hettinger2003-07-131-3/+1
| | | | Needs to be backported to both IDLE and IDLEFORK.
* Reworked test_warnings.py:Raymond Hettinger2003-07-132-56/+81
| | | | | | | | | | | | | * It ran fine under "python regrtest.py test_warnings" but failed under "python regrtest.py" presumably because other tests would add to filtered warnings and not reset them at the end of the test. * Converted to a unittest format for better control. Renamed monkey() and unmonkey() to setUp() and tearDown(). * Increased coverage by testing all warnings in __builtin__. * Increased coverage by testing regex matching of specific messages.
* This test failed on WindowsME because the full file path did not getRaymond Hettinger2003-07-132-6/+6
| | | | | | reported consistently with the *nix world. 'Lib/test/test_warnings.py' came out as 'lib\test\test_warnings.py'. The basename is all we care about so I used that.
* Repaired typos in comments.Tim Peters2003-07-131-1/+1
|
* Fixed critical shutdown race in _Database._commit.Tim Peters2003-07-131-5/+19
| | | | | | | | Related to SF patch 723231 (which pointed out the problem, but didn't fix it, just shut up the warning msg -- which was pointing out a dead- serious bug!). Bugfix candidate.
* More comments about why not closing a dumddbm properly can be a disaster.Tim Peters2003-07-131-3/+7
|
* SF 748201: time.strptime() should display format and date on errorRaymond Hettinger2003-07-131-1/+2
| | | | Usability fix. Makes the error message more helpful.
* _commit(): Modernization.Tim Peters2003-07-121-2/+2
|