Guido van Rossum
81da02e6aa
Added feeble test for reload() of packages and submodules.
1997-09-06 19:58:53 +00:00
Guido van Rossum
6c61242c78
Test set for package import.
1997-09-06 18:42:57 +00:00
Guido van Rossum
f394f56c2b
Made the 'info' argument to SyntaxError optional, so phase-2 syntax
...
errors are handled (these gave ``TypeError: not enough arguments'').
Also changed its __str__() to correct a typo (missing self.) and
return str(self.msg) to ensure the result is always string.
Also changed the default __str__ to simply return str(self.args).
1997-09-05 19:00:56 +00:00
Jeremy Hylton
6459627b12
Now produces some reassuring output.
1997-09-04 23:42:01 +00:00
Jeremy Hylton
9dc2b8ee07
Many more tests, including tests of many optional arguments.
1997-09-04 23:41:37 +00:00
Guido van Rossum
898c915a31
Added some try-excepts so that it can be imported in restricted mode
...
(though some type names are undefined in that case, e.g. CodeType
(inaccessible), FileType (not always accessible), and TracebackType
and FrameType (inaccessible).
1997-09-04 22:12:34 +00:00
Guido van Rossum
d807b7589b
The re test suite is very slow on slower hosts.
...
To save time, only run the first and last 10 tests except in verbose mode.
1997-09-04 14:35:45 +00:00
Guido van Rossum
dc5d07d952
Different test for Unix -- rely on os.sep instead of sys.platform.
1997-09-03 23:12:18 +00:00
Guido van Rossum
2b3fd76cc7
One patch from Sjoerd and one from Jack.
...
Sjoerd: add separate administration of temporary files created y
URLopener.retrieve() so cleanup can properly remove them. The old
code removed everything in tempcache which was a bad idea if the user
had passed a non-temp file into it. (I added a line to delete the
tempcache in cleanup() -- it still seems to make sense.)
Jack: in basejoin(), interpret relative paths starting in "../". This
is necessary if the server uses symbolic links.
1997-09-03 22:36:15 +00:00
Guido van Rossum
ad87d3e826
Give in to Mike Meyer -- add *both* lib/python1.5/packages and
...
lib/site-python to the path (if they exist). This is a reasonable
compromise.
1997-09-03 21:41:30 +00:00
Guido van Rossum
fc6efffbf9
#Removed debug print that was accidentally left in.
1997-09-03 00:35:38 +00:00
Guido van Rossum
5ed5c4c364
Add the same _keep_alive patch (by Michael Scharff) that was added to
...
copy.deepcopy() a while ago. Can't reproduce this but it doesn't
break anything and it looks like the code could have the same problem.
1997-09-03 00:23:54 +00:00
Guido van Rossum
625f40de05
#typo
1997-08-30 20:04:42 +00:00
Guido van Rossum
a28dab5ea2
Write out the dynamic OS choice, to avoid exec statements.
...
Adding support for a new OS is now a bit more work, but I bet that
'dos' or 'nt' will cover most situations...
1997-08-29 22:36:47 +00:00
Guido van Rossum
f30bec7bb2
New site.py semantics. Searches in
...
<*prefix>/lib/python<version>/packages for *.pth files containing
directories that are appended to sys.path.
1997-08-29 22:30:45 +00:00
Barry Warsaw
3e613ce79b
New file, which is imported by the built-in module when python is
...
started with the -X option. This file contains the definitions for
the built-in exception classes.
1997-08-29 21:59:26 +00:00
Barry Warsaw
6ed41a0a87
Expanded r() function to handle class exceptions.
1997-08-29 21:58:25 +00:00
Guido van Rossum
02840fdf84
user.py -- when imported, execfile(~/.pythonrc.py).
1997-08-28 14:32:14 +00:00
Guido van Rossum
e2ed9df645
Fixed bugs regarding lines starting with '.' (both receiving and sending).
...
Added a minimal test function.
1997-08-26 23:26:18 +00:00
Guido van Rossum
ab0abdcef8
Explicitly close the socket and temp file in URLopener.retrieve(), so
...
that multiple retrievals using the same connection will work.
This leaves open the more general problem that after
f = urlopen("ftp://...")
f must be closed before another retrieval from the same host should be
attempted.
1997-08-26 19:06:40 +00:00
Barry Warsaw
09f9547393
regression test for new sequence unpacking semantics
1997-08-25 22:17:45 +00:00
Barry Warsaw
9525df03bf
Output for sequence unpacking test
1997-08-25 22:15:22 +00:00
Barry Warsaw
558f66ff53
Added a few more tests of exception class raising
1997-08-22 21:28:05 +00:00
Barry Warsaw
ac405ce3f9
generated output for new tests
1997-08-22 21:27:40 +00:00
Barry Warsaw
d543077aa6
Added tests of the new builtin functions issubclass() and isinstance()
1997-08-22 21:27:03 +00:00
Guido van Rossum
b6784dc53f
Interpret three slashes in file: URL as local file (for Netscape on
...
Windows/Mac).
1997-08-20 23:34:01 +00:00
Guido van Rossum
558be283bf
Make sure the objects returned by __getinitargs__() are kept alive (in
...
the memo) to avoid a certain kind of nasty crash. (Not easily
reproducable because it requires a later call to __getinitargs__() to
return a tuple that happens to be allocated at the same address.)
1997-08-20 22:26:19 +00:00
Guido van Rossum
a412220bbf
Change default verbosity so that there are only three levels left: -q,
...
default and -v. In default mode, the name of each test is printed.
-v is the same as the old -vv. -q is more quiet than the old default
mode; that's fine I think.
1997-08-18 20:08:24 +00:00
Guido van Rossum
e7038425b1
Tweaks to cope with strftime returning 0 without error for %Z
1997-08-18 15:37:38 +00:00
Guido van Rossum
f07eaea134
Forgot to check in the fixed output for print
1997-08-18 15:36:05 +00:00
Guido van Rossum
9918e0c750
Add missing comma to make a tuple of (tagOrId).
1997-08-18 14:44:04 +00:00
Guido van Rossum
ce32096661
Oops. Of course, print b should also be print `b`. :-(
1997-08-18 13:42:28 +00:00
Guido van Rossum
c95a6c1af5
Use imp.find_module() as the most certain way to find the test data.
1997-08-15 16:23:32 +00:00
Jeremy Hylton
57fa217b01
generated by regrtest.py -g
1997-08-15 16:00:02 +00:00
Jeremy Hylton
6eb4b6a0bd
test the zlib module
...
only produce output if somethign goes wrong
1997-08-15 15:59:43 +00:00
Guido van Rossum
cf00505325
Added tests for \b, \B (AMK).
1997-08-15 15:44:58 +00:00
Guido van Rossum
827ea7cf5d
Last minut changes for \B, \S (?). AMK.
1997-08-15 15:44:23 +00:00
Guido van Rossum
ff712aa8ab
The usual.
1997-08-15 00:45:26 +00:00
Guido van Rossum
2b41fdccd3
Moved some non-standard format characters out of the standard list.
...
Also moved %c and %Z out of there, even though they are standard,
because these are locale dependent (and e.g. on Windows and Mac they
return different strings). Finally, sorted the tables slightly
different, to match my standard docs better (%a before %A).
1997-08-14 22:23:42 +00:00
Guido van Rossum
c4d6c4d950
OK, reop is safe again.
1997-08-14 21:23:07 +00:00
Guido van Rossum
5526e394a2
set LOOPS to 10000
1997-08-14 20:14:12 +00:00
Guido van Rossum
c4c26414c5
Print `a` so encrypted text is shown in ascii, not binary.
1997-08-14 19:55:00 +00:00
Guido van Rossum
e83870131b
Don't call sys.exit() all over the place -- simply return the exit
...
status from main() and call sys.exit(main()) in the startup stub at
the end of the file.
1997-08-14 19:40:34 +00:00
Guido van Rossum
257c772afa
Comment out use of reop.expand_escape and reop._expand until their
...
bugginess has been fixed.
1997-08-14 19:33:06 +00:00
Guido van Rossum
1530c87985
Fred Lundh's latest versions.
1997-08-14 14:17:28 +00:00
Guido van Rossum
f53c86c2b6
Add dummies for create/delete filehandles, just so that vanilla Grail
...
0.3 won't break on Windows.
1997-08-14 14:15:54 +00:00
Guido van Rossum
88bb808d77
Fixed (and documented, see Doc/libmimify.tex) mime_decode_header() and
...
mime_encode_header().
1997-08-14 14:10:37 +00:00
Guido van Rossum
95e8053a9f
1.5a3 prerelease 1 from AMK
1997-08-13 22:34:14 +00:00
Guido van Rossum
6dc61b110f
Add try-finally to close the file after loading it in
...
ModuleLoader.load_module! (Thanks to Daniel Larsson who complained
about this.)
1997-08-13 14:48:36 +00:00
Guido van Rossum
6af4abdba0
Various changes by AMK, e.g. remove \e, \cX, add \v
1997-08-13 03:25:34 +00:00