Skip Montanaro
640f483c50
new test - like test_ntpath but without splitunc test cases
2000-08-23 16:55:00 +00:00
Skip Montanaro
877d62e72d
added commonprefix test cases
2000-08-23 16:54:27 +00:00
Skip Montanaro
533bc9ad42
updated to correct failing test cases
2000-08-23 16:51:56 +00:00
Jack Jansen
03c06ee7fc
Restored commonprefix() semantics.
2000-08-23 09:13:40 +00:00
Tim Peters
a48b526745
Rehabilitate autotest.py.
...
In README: Write up (Guido's) rules for intra-test imports; warn against
asserts; document test_support.use_large_resources.
2000-08-23 05:28:45 +00:00
Skip Montanaro
623583165e
revert semantics of commonprefix to work character-by-character
2000-08-22 13:01:53 +00:00
Skip Montanaro
79f1c1778d
* added doc strings to urlopen and unquote_plus
...
* fixed type in doc string for quote
2000-08-22 03:00:52 +00:00
Skip Montanaro
46dfa5f4ed
require list comprehensions to start with a for clause
2000-08-22 02:43:07 +00:00
Guido van Rossum
2823f03a56
Patch by Toby Dickenson: don't die when an error occurs during string
...
conversion in an exception, but instead display <unprintable %s
object> where %s is the type name.
2000-08-22 02:04:46 +00:00
Greg Ward
986659fffe
Don't bother to 'mkpath()' the 'dist_dir' -- that's now taken care of
...
in archive_util.py.
2000-08-22 01:49:41 +00:00
Greg Ward
04e25a1bdf
Ensure destination directory exists before trying to create a tarball
...
or ZIP file.
2000-08-22 01:48:54 +00:00
Guido van Rossum
ff18b800a4
Don't reference a module named test.test_support. Always use plain
...
test_support. Also fixed the expected output.
2000-08-21 22:59:29 +00:00
Fred Drake
79ca79d1a9
Add a minimal test suite for the parser module.
2000-08-21 22:30:53 +00:00
Fred Drake
a893957c8e
Denis S. Otkidach <den@analyt.chem.msu.ru>:
...
Let UserString.translate() method work with unicode data.
This closes SourceForge patch #101246 .
2000-08-21 21:47:20 +00:00
Fred Drake
567ca8e732
Patch from Paul Schreiber <paul@commerceflow.com>:
...
Patch description
-----------------
This addresses four issues:
(1) usernames and passwords in urls with special characters are now
decoded properly. i.e. http://foo%2C:bar@www.whatever.com/
(2) Basic Auth support has been added to HTTPS, like it was in HTTP.
(3) Version 1.92 sent the POSTed data, but did not deal with errors
(HTTP responses other than 200) properly. HTTPS now behaves the
same way HTTP does.
(4) made URL-checking beahve the same way with HTTPS as it does with
HTTP (changed == to !=).
2000-08-21 21:42:42 +00:00
Barry Warsaw
203da6dfe4
Add the new PRINT_ITEM_TO and PRINT_NEWLINE_TO opcodes.
2000-08-21 17:18:40 +00:00
Fred Drake
62c53ddabe
Add TestSkipped as another interesting item defined by test_support.
2000-08-21 16:55:57 +00:00
Barry Warsaw
efc92eec33
PEP 214, Extended print Statement, has been accepted by the BDFL.
...
Additional test cases for the extended print form.
2000-08-21 15:46:50 +00:00
Tim Peters
e82e7ccdbd
Remove the winreg module from the project. I don't believe any
...
docs changes are needed (only reference to winreg I could find
was in libwinreg.tex, which is documenting _winreg, and merely
mentions that a higher-level winreg module *may* appear someday;
that's still true).
2000-08-21 02:27:22 +00:00
Tim Peters
84f28db66a
Changed the popen2.py _test function to use the "more" cmd when
...
os.name == "nt". This makes test_popen2 pass under Win98SE.
HOWEVER, the Win98 "more" invents a leading newline out
of thin air, and I'm not sure that the other Windows flavors
of "more" also do that.
So, somebody please try under other Windows flavors!
2000-08-20 05:57:36 +00:00
Tim Peters
571bb8fc72
David Goodger's new getopt test module (thanks, David!).
...
https://sourceforge.net/patch/?func=detailpatch&patch_id=101110&group_id=5470
Accepted as-is, except for purging an "import *".
2000-08-20 04:18:40 +00:00
Moshe Zadka
514a1028a2
Adding tests of the "attrs" optional argument, and of the js_output
...
functionality.
2000-08-19 15:57:33 +00:00
Andrew M. Kuchling
cdec8c746b
Test case for Cookie.py
2000-08-19 15:21:12 +00:00
Andrew M. Kuchling
52ea872777
Added Tim O'Malley's Cookie.py module (master version at
...
http://www.timo-tasi.org/python/Cookie.py )
This is revision 2.26 according to Tim's RCS history.
2000-08-19 13:01:19 +00:00
Fred Drake
8ae9ce5e5b
Better conformance to the Python Style Guide: use spaces around operators.
2000-08-18 16:09:56 +00:00
Fred Drake
fe5c22a85e
When a KeyboardInterrupt is caught, just use the "raise" syntax to
...
re-raise it instead of re-raising it "manually" the ugly way.
2000-08-18 16:04:05 +00:00
Fred Drake
7b4fc17c6d
Revise to use atexit instead of monkeying with sys.exitfunc directly.
2000-08-18 15:50:54 +00:00
Fred Drake
def003845b
Convert some old-style string exceptions to class exceptions.
2000-08-18 14:59:33 +00:00
Fred Drake
b65b006595
Convert some old-style string exceptions to class exceptions.
2000-08-18 14:50:20 +00:00
Fred Drake
4148877acf
Update to reflect the recent Grammar changes.
2000-08-17 23:08:05 +00:00
Thomas Wouters
5215225ea1
Apply SF patch #101135 , adding 'import module as m' and 'from module import
...
name as n'. By doing some twists and turns, "as" is not a reserved word.
There is a slight change in semantics for 'from module import name' (it will
now honour the 'global' keyword) but only in cases that are explicitly
undocumented.
2000-08-17 22:55:00 +00:00
Thomas Wouters
1d75a79c00
Apply SF patch #101029 : call __getitem__ with a proper slice object if there
...
is no __getslice__ available. Also does the same for C extension types.
Includes rudimentary documentation (it could use a cross reference to the
section on slice objects, I couldn't figure out how to do that) and a test
suite for all Python __hooks__ I could think of, including the new
behaviour.
2000-08-17 22:37:32 +00:00
Fred Drake
227b120468
Convert some old-style string exceptions to class exceptions.
2000-08-17 05:06:49 +00:00
Fred Drake
9b8d801c37
Convert some old-style string exceptions to class exceptions.
2000-08-17 04:45:13 +00:00
Peter Schneider-Kamp
2d2785aad1
updated occurences of fqdn algorithm (closes patch #101197 )
2000-08-16 20:30:21 +00:00
Fred Drake
0ebc1c6952
Use socket.getfqdn() instead of defining make_fqdn().
2000-08-16 14:26:22 +00:00
Fred Drake
a6070f0221
Revise the wrapper structure for the socket module:
...
socket.py is used for all platforms, and it defines the additional
classes and alternate socket() function for Windows and BeOS systems.
The plat-*/socket.py files are no longer needed, since there is a
shared socket.py.
make_fqdn() is provided, but I decided to call it getfqdn() to be
consistent with the other names in the socket module. Since it is
really a "get" operation and does not create a new name, this is
the right name to give it.
Move the docstring here from the _socket module.
2000-08-16 14:14:32 +00:00
Thomas Wouters
caa658d047
Apply SF patch #101151 , by Peter S-K, which fixes smtplib's passing of the
...
'helo' and 'ehlo' message, and exports the 'make_fqdn' function. This
function should be moved to socket.py, if that module ever gets a Python
wrapper.
2000-08-15 19:30:36 +00:00
Fred Drake
56221a7cfa
Chris Herborth <chrish@pobox.com>:
...
Minor updates for BeOS R5.
Use of OSError in test.test_fork1 changed to TestSkipped, with corresponding
change in BeOS/README (by Fred).
This closes SourceForge patch #100978 .
2000-08-15 18:52:33 +00:00
Fred Drake
a64436e853
Update test output to reflect change in SyntaxError formatting.
...
This closes SourceForge bug #110628 (Jitterbug PR#278).
2000-08-15 15:51:18 +00:00
Greg Ward
f40ff1b8b2
Bump version to 0.9.1.
2000-08-15 13:14:27 +00:00
Greg Ward
44a980dff9
Fixed the move-RPM-files hack so it knows about the '--binary-only' and
...
'--source-only' options.
2000-08-15 13:05:35 +00:00
Greg Ward
a12c195064
Added support for the '--dist-dir' option, including a mildly nasty
...
hack to find the two created RPM files (source and binary) and
move them to the "dist dir" (default "dist").
2000-08-15 13:03:16 +00:00
Greg Ward
c0fe82ca26
Fix long-hidden inconsistency in internal interface: 'find_modules()' now
...
represents packages as strings, not tuples. This allowed a simplification
in 'get_package_dir()', too -- can now assume that 'package' is a string.
2000-08-15 13:01:25 +00:00
Barry Warsaw
97ca66fd57
tests for binascii.b2a_hex() and binascii.a2b_hex().
2000-08-15 06:08:31 +00:00
Barry Warsaw
3fdcccb82f
Added a test of the md5.hexdigest() method. Funny enough, this test
...
had yet-another Python implementation of a binary-data-to-hex-digit
encoder!
2000-08-15 06:01:36 +00:00
David Scherer
7aced17437
Initial revision
2000-08-15 01:13:23 +00:00
Mark Hammond
041307d95c
Remove the test for abspath with an empty path - too hard to do in a cross-platform manner.
2000-08-14 23:06:37 +00:00
Mark Hammond
673c6cf3d4
Test for fix to bug #110673 : os.abspatth() now always returns os.getcwd() on Windows, if an empty path is specified. It previously did not if an empty path was delegated to win32api.GetFullPathName())
2000-08-14 06:21:26 +00:00
Mark Hammond
647d2fe145
Fix for Bug #110673 : os.abspatth() now always returns os.getcwd() on Windows, if an empty path is specified. It previously did not if an empty path was delegated to win32api.GetFullPathName())
2000-08-14 06:20:32 +00:00