Martin v. Löwis
a8cd7a26d4
Add test case for #43581 .
2006-04-03 11:05:39 +00:00
Anthony Baxter
cf0a2a8576
Deal with openbsd's different style of default /etc/hosts by forcing the fqdn
...
lookup to use the IP address returned by gethosbyname.
2006-04-03 08:10:33 +00:00
Anthony Baxter
93f5b93422
The email module's parsedate_tz function now sets the daylight savings
...
flag to -1 (unknown) since it can't tell from the date whether it should
be set.
patch from Aldo Cortesi
2006-04-03 08:05:07 +00:00
Neal Norwitz
9e5eb4ffbf
I could have sworn this was part of the change to not abbreviate ABSOLUTE
2006-04-03 06:58:51 +00:00
Neal Norwitz
b0b20a10bc
Get ctypes loader working on OSF1 (Tru64)
2006-04-03 06:52:43 +00:00
Neal Norwitz
cbce280d4f
Don't abbreviate ABS, use long name ABSOLUTE.
2006-04-03 06:26:32 +00:00
Neal Norwitz
84c95b9407
Fix test_pty on OSF/1 (Tru64). The problem is that the newline gets
...
converted to CR CR NL. There may be a way to fix this with tcsetattr,
but I couldn't find it. There was a similar problem on IRIX.
Just normalize the output and compare that.
Will backport.
2006-04-03 05:28:31 +00:00
Neal Norwitz
9cdfa4c98c
Skip the test for sys.stdin.seek(-1) on OSF/1 (Tru64) since it does Bad Things
...
like cause the interpreter to exit abruptly. If there's a way to fix this,
it would be good to really fix it. It could just be the operation of the
std C library and we just aren't supposed to do that.
When the test case is skipped, we print a message so the user can check
for themselves.
2006-04-03 05:27:05 +00:00
Neal Norwitz
b902f4e401
Use absolute imports
2006-04-03 04:45:34 +00:00
Tim Peters
480725d4c5
Whitespace normalization.
2006-04-03 02:46:44 +00:00
Walter Dörwald
04ee87097c
Always use firstweekday module 7.
2006-04-02 22:11:10 +00:00
Georg Brandl
7fff58c097
Readd urllib.quote import as it doesn't cause any harm.
2006-04-02 21:13:13 +00:00
Georg Brandl
4696ffbf09
Remove "disgusting hack" in favour of closure (patch #1462235 )
2006-04-02 21:09:51 +00:00
Georg Brandl
c5ffd91911
Patch #1463012 : remove not working undocumented classes from urllib2
2006-04-02 20:48:11 +00:00
Georg Brandl
720096a6bf
Patch #1462790 : fix urllib2 ProxyHandler for host:port proxies
2006-04-02 20:45:34 +00:00
Georg Brandl
4eb521e595
bug #1462706 : guard against host not having FQDN hostname
2006-04-02 20:37:17 +00:00
Fred Drake
ad5177cf8d
Patch #624325 : urlparse.urlparse() and urlparse.urlsplit() results
...
now sport attributes that provide access to the parts of the result.
2006-04-01 22:14:43 +00:00
Walter Dörwald
f878b8120c
Make firstweekday a simple attribute instead
...
of hiding it behind a setter and a getter.
2006-04-01 20:40:23 +00:00
Georg Brandl
7f6b67c235
patch #1462498 : handle entityrefs in attribute values.
2006-04-01 08:35:18 +00:00
Walter Dörwald
48d5e508eb
Bug #947906 : Add classes LocaleTextCalendar and LocaleHTMLCalendar,
...
that output localized month and weekday names and can cope
with encodings.
2006-04-01 07:57:00 +00:00
Georg Brandl
1c5a59f80a
Bug #1458017 : make distutils.Log._log more forgiving when passing in
...
msg strings with '%', but without format args.
2006-04-01 07:46:54 +00:00
Fred Drake
23fd3d49e9
add support for the sips: scheme (identical to sip: except for scheme name)
2006-04-01 06:11:07 +00:00
Tim Peters
d8eaa49092
Fix stupid typo.
2006-04-01 01:32:13 +00:00
Tim Peters
4423b8cebc
test_timeout(): Disable this new test on all platforms.
...
The
s.connect(("gmail.org", 995))
line has been timing out on all buildbot slaves for hours
now, causing the test to fail.
2006-04-01 01:28:51 +00:00
Anthony Baxter
c51ee69b27
merged the sqlite-integration branch.
...
This is based on pysqlite2.1.3, and provides a DB-API interface in
the standard library. You'll need sqlite 3.2.2 or later to build
this - if you have an earlier version, the C extension module will
not be built.
2006-04-01 00:57:31 +00:00
Tim Peters
c17976e983
Another crack at bug #1460340 : make random.sample(dict)
...
work, this time by ugly brute force.
2006-04-01 00:26:53 +00:00
Georg Brandl
c90397a7c9
Make test_socket_ssl finally pass on WIn
2006-03-31 21:12:32 +00:00
Georg Brandl
814727582a
Update version number to 2.5
2006-03-31 20:02:40 +00:00
Georg Brandl
dcdfd22bb4
bug #1257988 : don't bail out on gethostbyname(gethostname()) failure
2006-03-31 19:34:13 +00:00
Georg Brandl
d49be30938
Disable test_socket_ssl timeout test on Windows.
2006-03-31 19:09:56 +00:00
Georg Brandl
ccadf84a1b
Patch #1460496 : round() now accepts keyword arguments.
2006-03-31 18:54:53 +00:00
Georg Brandl
338ef7d2bd
Bug #1445068 : getpass.getpass() can now be given an explicit stream
...
argument to specify where to write the prompt.
2006-03-31 18:42:16 +00:00
Georg Brandl
22ec80bc4f
Patch #1462313 , bug #1443328 : the pickle modules now can handle classes
...
that have __private names in their __slots__.
2006-03-31 18:25:44 +00:00
Georg Brandl
43f08a85e4
Patch #1380952 : fix SSL objects timing out on consecutive read()s
2006-03-31 18:01:16 +00:00
Georg Brandl
dd2245f230
Bug #1250170 , Patch #1462230 : handle socket.gethostname()
...
failures gracefully
2006-03-31 17:18:06 +00:00
Georg Brandl
51dbc4c879
traceback now shows error position for all SyntaxError subclasses,
...
e.g. IndentationError. (bug #1447885 )
2006-03-31 15:59:13 +00:00
Thomas Wouters
a6126ba890
Fix the reference leak in test_generators, by explicitly breaking the cycle
...
we are about to leave behind. An example of the cause of this leak can be
found in the leakers directory, in case we ever want to tackle the
underlying problem.
2006-03-31 15:31:43 +00:00
Walter Dörwald
58917a6083
Bug #947906 : An object oriented interface has been added to the calendar
...
module. It's possible to generate HTML calendar now and the module can be
called as a script (e.g. via ``python -mcalendar``).
2006-03-31 15:26:22 +00:00
Tim Peters
46cc702b72
test_main(): Restore the decimal context that was in
...
effect at the time test_decimal was imported. Else
running test_decimal had the bad side effect of
permanently changing the decimal context in effect.
That caused text_tokenize to fail if it ran after
test_decimal.
2006-03-31 04:11:16 +00:00
Tim Peters
ef57567de0
Repaired a number of errors in this test:
...
- The doctests in decistmt() weren't run at all when
test_tokenize was run via regrtest.py.
- Some expected output in decistmt() was Windows-specific
(but nobody noticed because the doctests weren't getting
run).
- test_roundtrip() didn't actually test anything when
running the tests with -O. Now it does.
- Changed test_roundtrip() to show the name of the input
file when it fails. That would have saved a lot of
time earlier today.
- Added a bunch of comments.
2006-03-31 03:17:30 +00:00
Barry Warsaw
176014ffad
SF patch #1458476 with modifications based on discussions in python-dev. This
...
adds the following API calls: PySet_Clear(), _PySet_Next(), and
_PySet_Update(). The latter two are considered non-public. Tests and
documentation (for the public API) are included.
2006-03-30 22:45:35 +00:00
Guido van Rossum
c259cc9c4c
Insert a safety space after numbers as well as names in untokenize().
2006-03-30 21:43:35 +00:00
Thomas Heller
0d93a23479
Try to fix test_loading on openbsd.
2006-03-30 19:16:15 +00:00
Thomas Heller
300269ae6f
Oops - this should not have gone in.
2006-03-30 18:29:25 +00:00
Thomas Heller
b320682577
Output more info when the test fails.
2006-03-30 17:49:55 +00:00
Armin Rigo
314861c568
Minor bugs in the __index__ code (PEP 357), with tests.
2006-03-30 14:04:02 +00:00
Anthony Baxter
4ef3a23a35
whitespace normalisation
2006-03-30 12:59:11 +00:00
Armin Rigo
5eca19b894
Checking in the test for PEP 357.
...
This is from the SF tracker as well; for some reason the
content of test_index.py was lost and an empty file was
checked in instead.
2006-03-30 11:28:43 +00:00
Anthony Baxter
67b6d516ce
Fixed bug #1459029 - unicode reprs were double-escaped.
2006-03-30 10:54:07 +00:00
Phillip J. Eby
2e550b3dd2
Implementation for patch request #1457316 : support --identity option
...
for setup.py "upload" command.
2006-03-30 02:12:14 +00:00