Guido van Rossum
f73e30c3e3
Add the list of expected skips for Linux 2.x. Restructured the code a
...
little bit using a dictionary to avoid more code duplication as
more platforms are supported.
2001-08-12 02:22:19 +00:00
Tim Peters
a2be2d624a
Move line; reported on python-dev by Mark Favas (thanks!).
2001-08-12 02:01:09 +00:00
Tim Peters
b5b7b78414
Teach regrtest which tests we *expect* to skip on Win32. Please teach it
...
about your platform too.
2001-08-12 01:20:39 +00:00
Steven M. Gava
28ccc2463e
removed some cruft
2001-08-12 01:14:55 +00:00
Tim Peters
a6a4f27ef7
_Condition.wait(): never sleep longer than the timeout time remaining,
...
and even if we have a long time left to wait, try the lock at least 20
times/second.
2001-08-12 00:41:33 +00:00
Jack Jansen
dbc363ce35
The test assumed that the local pathname convention for "foo" would sort before "foo/bar", which is not true on the mac (where they are "foo" and ":foo:bar", respectively; ":foo" would be fine too, but "foo" is the preferred spelling). Fixed by sorting the output.
2001-08-11 23:22:43 +00:00
Jeremy Hylton
d5d8fc559c
Replace all type comparisons with isinstance() calls
2001-08-11 21:44:46 +00:00
Steven M. Gava
c01e30f072
repair posix fonts fix
2001-08-11 15:48:13 +00:00
Martin v. Löwis
58682b7fe5
Only catch the errors that can actually occur, as reported in bug #411881 .
2001-08-11 15:02:57 +00:00
Steven M. Gava
abdfc4147d
support for help menu changes
2001-08-11 07:46:26 +00:00
Steven M. Gava
5b3ac8f98f
some re-design
2001-08-11 07:45:28 +00:00
Steven M. Gava
6b1ab255c2
supports about changes
2001-08-11 07:44:28 +00:00
Steven M. Gava
0ba4df89ab
adjust help menu bindings
2001-08-11 07:42:37 +00:00
Fred Drake
cd112f5546
Added tests for rich comparison operator functions.
...
Converted tests to PyUnit.
2001-08-11 03:21:35 +00:00
Guido van Rossum
e45763a8e6
Add test for SF bug #442833 (multiple inheritance).
2001-08-10 21:28:46 +00:00
Guido van Rossum
61cf780b6d
The message accompanying the TypeError exception on a readonly
...
attribute changed again.
2001-08-10 21:25:24 +00:00
Andrew M. Kuchling
f4aa684132
[Bug #414032 ] Make the 'sdist' command work when the distribution contains
...
libraries. This is done by adding a .get_source_files() method,
contributed by Rene Liebscher and slightly modified.
Remove an unused local variable spotted by PyChecker
2001-08-10 20:24:33 +00:00
Guido van Rossum
6d94627f1e
Allow AttributeError as well as TypeError for attribute-less objects.
2001-08-10 19:42:38 +00:00
Andrew M. Kuchling
13f4ea25d4
Remove unused variable
2001-08-10 19:00:41 +00:00
Andrew M. Kuchling
5079fe07fe
Fix typo caught by PyChecker
2001-08-10 19:00:15 +00:00
Andrew M. Kuchling
665f248806
Add forgotten import
2001-08-10 18:59:59 +00:00
Fred Drake
981a1787b7
Wrap a comment to fit in 80 columns.
...
Use construction-syntax for an exception to make the argument easier
to read.
2001-08-10 18:59:30 +00:00
Andrew M. Kuchling
db988b1ed3
Use .get_license()
2001-08-10 18:50:11 +00:00
Andrew M. Kuchling
fa7dc57d6c
[Bug #412271 , bug #449009 ] Use 'license' as the attribute name,
...
though 'licence' is still supported for backward-compatibility
(Should I add a warning to get_licence(), or not bother?)
Also fixes an UnboundLocalError noticed by PyChecker
2001-08-10 18:49:23 +00:00
Andrew M. Kuchling
fcfc8d5c0e
Patch #441091 from Finn Bock: the more advanced flush options are not
...
available in java, so only use the advanced flush options if they
are defined in the zlib module.
2001-08-10 15:50:11 +00:00
Guido van Rossum
315cd29ecf
Disable the sub() optimization until Fredrik has time to look into SF
...
bug #449000 , "re.sub(r'\n', ...) broke". This was Fredrik's
suggestion -- he's on vacation and said he wouldn't be able to work on
this until next week.
2001-08-10 14:56:54 +00:00
Guido van Rossum
e056e4d15c
Check in a testcase for SF bug #449000 : re.sub(r'\n', ...) broke.
2001-08-10 14:52:48 +00:00
Jeremy Hylton
a8b5f7d178
Remove hard-coded NT constants that are already defined in errno on NT.
...
Wrap some long lines.
Remove unnecessary tuple unpack.
2001-08-10 14:30:35 +00:00
Martin v. Löwis
9b75dca192
Expose nl_langinfo through locale where available.
2001-08-10 13:58:50 +00:00
Tim Peters
ab9ba27dc0
Whitespace normalization.
2001-08-09 21:40:30 +00:00
Tim Peters
c7ca3ffba3
Skip test_mhlib on Windows -- too many Unix assumptions.
2001-08-09 21:34:54 +00:00
Guido van Rossum
e4deb959cc
Fix two bugs detected by PyChecker: there's no need for redundant
...
"import MacOS", and there *is* a need for "import operator".
2001-08-09 21:22:15 +00:00
Andrew M. Kuchling
6386a4c846
Import UnknownFileError
2001-08-09 21:02:34 +00:00
Andrew M. Kuchling
106ffdb672
Import the errno module
2001-08-09 20:59:53 +00:00
Andrew M. Kuchling
affadeb9fd
Use correct variable name
2001-08-09 20:57:46 +00:00
Fred Drake
eaa77e2ca1
Added tests for operator.floordiv() and operator.truediv().
2001-08-09 20:23:08 +00:00
Guido van Rossum
3720261729
Restore the test for 'object' that I removed when object was
...
uninstantiable. All is well now.
2001-08-09 19:45:21 +00:00
Guido van Rossum
a995c91243
Use type(x).__name__ to get the name of the type instead of parsing
...
repr(type(x)).
2001-08-09 18:56:27 +00:00
Guido van Rossum
0263c80b90
Unittests for mhlib, by Nick Mathewson.
2001-08-09 18:18:08 +00:00
Tim Peters
55c12d4d5b
SF patch #403640 : incomplete proxy handling in URLLIB
...
Look specific to Windows. Don't know whether it works.
2001-08-09 18:04:14 +00:00
Guido van Rossum
f0713d3f4d
SF Patch #420725 by Walter Doerwald:
...
For local files urllib.py doesn't return the MIME
headers that the documentation says it does:
http://www.python.org/doc/current/lib/module-
urllib.html#l2h-2187 states that "When the method is
local-file, returned headers will include a Date
representing the file's last-modified time, a Content-
Length giving file size, and a Content-Type containing
a guess at the file's type"
But in Python 2.1 the only header that gets returned
is the Content-Type:
>>> import urllib
>>> f = urllib.urlopen("gurk.txt")
>>> f.info().headers
['Content-Type: text/plain\n']
2001-08-09 17:43:35 +00:00
Martin v. Löwis
c8718c13e8
Patch #403514 : precompute _subst_format_str to avoid a call to
...
string.join() on each invocation of _bind.
2001-08-09 16:57:33 +00:00
Guido van Rossum
3c7a25a4d9
Applied SF patch #438424 by Josh Cogliati:
...
Python's logolike module turtle.py did not display
the turtle except when actually drawing lines.
This patch changes the turtle.py module so that
it displays the turtle at all times when tracing is
on. This is similar to the the way that logo works.
When tracing is off the turtle will not be displayed.
2001-08-09 16:42:07 +00:00
Martin v. Löwis
dbdcb0fc3a
Regenerate for glibc 2.2.3.
2001-08-09 12:48:17 +00:00
Martin v. Löwis
4414933f62
Regenerate for Solaris 8.
2001-08-09 12:33:32 +00:00
Martin v. Löwis
8cc965c1fb
Patch #448474 : Add support for tell() and seek() to gzip.GzipFile.
2001-08-09 07:21:56 +00:00
Guido van Rossum
64deef2b17
A test suite for binary operators, disguised as a rational number
...
class.
2001-08-08 22:27:20 +00:00
Greg Ward
034cbf1350
Typo fix (spelling mistake in error message).
2001-08-08 20:55:10 +00:00
Martin v. Löwis
ff88556af6
Patch #449083 : Use builtins to initalize the module.
2001-08-08 16:02:01 +00:00
Steve Purcell
e00dde2087
Merged in bugfix from PyUnit CVS for problem reported by Gary Todd.
...
If 'unittest.py' was run from the command line with the name of a test
case class as a parameter, it failed with an ugly error. (Which was a
shame, because the documentation says you can do that.)
The problem was the old 'is the class X that you imported from me the same
as my class X?' gotcha.
2001-08-08 07:57:26 +00:00