Jack Jansen
00cbf07ca7
Added a -c (--copyfile) option with argument src:dst which copies file src
...
into dst in the bundle. The Python API already had this functionality
2003-02-24 16:27:08 +00:00
Jack Jansen
0c44c0477b
sys.executable can contain spaces, cater for this when passing it to
...
os.popen(). Fixes #692222 .
2003-02-24 15:26:39 +00:00
Guido van Rossum
577fb5a1db
Fix from SF patch #633359 by Greg Chapman for SF bug #610299 :
...
The problem is in sre_compile.py: the call to
_compile_charset near the end of _compile_info forgets to
pass in the flags, so that the info charset is not compiled
with re.U. (The info charset is used when searching to find
the first character at which a match could start; it is not
generated for patterns beginning with a repeat like '\w{1}'.)
2003-02-24 01:18:35 +00:00
Neal Norwitz
15ff0e9342
Get test to work on alpha
2003-02-23 23:15:26 +00:00
Neal Norwitz
d5a65a77cf
Fix SF bug #689659 , 64-bit int and long hash keys incompatible
...
On a 64-bit machine, a dictionary could contain duplicate int/long keys
if the value was > 2**32.
2003-02-23 23:11:41 +00:00
Jack Jansen
c2dd2f0966
Expect to skip test_iconv_codecs on MacOSX.
2003-02-23 22:56:58 +00:00
Neal Norwitz
71b13e8b4c
Fix SF bug #690081 , test_posix fails when run in non-interactive mode
...
Don't bother testing os.getlogin() if we aren't running from a tty (terminal)
It fails when run without a tty (e.g., when run from cron).
2003-02-23 22:12:24 +00:00
Neal Norwitz
a4c93b68f1
Fix SF bug #691276 , shutil.copytree documentation bug
...
Also use True/False instead of 1/0 for symlink flag.
2003-02-23 21:36:32 +00:00
Raymond Hettinger
61fe64d5de
User requested changes to the itertools module.
...
Subsumed times() into repeat().
Added cycle() and chain().
2003-02-23 04:40:07 +00:00
Jack Jansen
d9bb1a0b01
Getting rid of macfs.
2003-02-21 23:18:48 +00:00
Jack Jansen
8cb1ff5e8b
Get rid of macfs.
2003-02-21 23:14:30 +00:00
Jack Jansen
5bb97e66dc
Checking mac-specific stuff from the 2.3a2 branch in on the trunk.
2003-02-21 22:33:55 +00:00
Jack Jansen
4c641d0ce1
getpid doesn't exist on MacOS9.
2003-02-21 22:29:45 +00:00
Guido van Rossum
be53242f49
Remove _reduce_2, it's now implemented in C.
2003-02-21 22:20:31 +00:00
Tim Peters
7107a7fbcc
SF bug 690622: test_cpickle overflows stack on MacOS9.
...
test_nonrecursive_deep(): Reduced nesting depth to 60.
Not a bugfix candidate. 2.3 increased the number of stack frames
needed to pickle a list (in order to get implement the "list
batching" unpickling memory optimization new in 2.3).
2003-02-21 20:14:35 +00:00
Tim Peters
14821c5914
Doubled TimeoutTestCase.fuzz, to slash the frequency of bogus failures
...
on the boxes I use.
2003-02-21 16:45:41 +00:00
Walter Dörwald
0fd583ce4d
Port all string tests to PyUnit and share as much tests
...
between str, unicode, UserString and the string module
as possible. This increases code coverage in stringobject.c
from 83% to 86% and should help keep the string classes
in sync in the future. From SF patch #662807
2003-02-21 12:53:50 +00:00
Raymond Hettinger
785d0a37e5
SF bug #690083 : test_random fails sometimes
...
time.sleep(1) sometimes delays for fractionally less than a second
resulting in too short of an interval for C's time.time() function
to create a distinct seed.
2003-02-21 01:41:36 +00:00
Guido van Rossum
af16065918
announce(): use the level argument to control the log level.
2003-02-20 02:10:08 +00:00
Guido van Rossum
a85dbeb61f
set_verbosity(): do something reasonable for out-of-range verbosity
...
levels. (Previously, -vvv would be the same as -q!)
2003-02-20 02:09:30 +00:00
Andrew M. Kuchling
80be59b275
Include download_url in the data POSTed to the catalog server
2003-02-19 14:27:21 +00:00
Andrew M. Kuchling
188d85f475
[Patch #683939 ] Add download_url field to metadata
2003-02-19 14:16:01 +00:00
Andrew M. Kuchling
23c98c5f47
[Patch #684398 ] Rename verbose argument to show-response; don't conditionalize the get_classifiers() call
2003-02-19 13:49:35 +00:00
Andrew MacIntyre
7970d20792
OS/2 has no concept of file ownership, like DOS & MS Windows version
...
prior to NT. EMX has a number of Posix emulation routines, including
geteuid() but lacks chown(), so silently skip trying to actually set
a file ownership when extracting a file from a tar archive.
2003-02-19 12:51:34 +00:00
Tim Peters
3b5de4db92
Reverted whitespace normalization on this file. I should really change
...
this thing so it doesn't rely on being unnormalized. (That's the
editorial "I", if anyone's listening <wink>.)
2003-02-19 02:44:12 +00:00
Tim Peters
8266af4f06
Removed debugging print in test_tarfile.
...
In the Windows installer, continued the endless battle to copy over files
with new one-shot extensions.
2003-02-19 02:41:44 +00:00
Tim Peters
f2715e0764
Whitespace normalization.
2003-02-19 02:35:07 +00:00
Guido van Rossum
f805cd2c1f
Rename _better_reduce to _reduce_2, to make sure that any code that
...
was still referencing it will fail. Also removed some debug cruft
from _reduce_ex.
2003-02-19 01:58:53 +00:00
Guido van Rossum
9c9cf41a01
Remove now unused _better_reduce.
2003-02-19 01:20:40 +00:00
Guido van Rossum
e690883ccf
Use __reduce_ex__ in copy.py. The test_*copy_cant() tests are simpler again.
2003-02-19 01:19:28 +00:00
Mark Hammond
a43fd0c899
Fix bug 683658 - PyErr_Warn may cause import deadlock.
2003-02-19 00:33:33 +00:00
Jack Jansen
9f59d528c5
Enable argv emulation if required.
...
Fixed a bug for applets with their own plist files.
2003-02-18 23:30:27 +00:00
Jack Jansen
a03adde31b
Added an argv_emulation option (command line option: --argv or -a) which
...
creates the sys.argv emulation wrapper for droplets. Also updates
the plist, if needed, and the includedModules (but this last is untested).
2003-02-18 23:29:46 +00:00
Jack Jansen
b135548d0d
Argvemulator still used the old Alias API. Fixed.
2003-02-18 23:28:05 +00:00
Guido van Rossum
443ada47c3
Remove unused _better_reduce (which will disappear soon) and
...
_reconstructor (whose import here is a mystery to me).
2003-02-18 22:49:10 +00:00
Guido van Rossum
2a30b21f64
Three test cases for __reduce_ex__. This fails for cPickle, until Tim
...
checks in his changes to support this in cPickle.c.
2003-02-18 22:41:24 +00:00
Guido van Rossum
c53f009f94
Introducing __reduce_ex__, which is called with a protocol number argument
...
if it exists in preference over __reduce__. Now Tim can go implement this
in cPickle.c.
2003-02-18 22:05:12 +00:00
Andrew M. Kuchling
e12dcd7ff4
Use python.org as the repository
2003-02-18 21:28:20 +00:00
Tim Peters
e2052ab82a
One doctest displaying a dict didn't sort it first. *Maybe* this fixes
...
the AIX problem with this test.
2003-02-18 16:54:41 +00:00
Neal Norwitz
dcfdceb9a2
Fix SF bug #688424 , 64-bit test problems
2003-02-18 15:45:44 +00:00
Neal Norwitz
eb2a5ef36a
Fix SF bug #688424 , 64-bit test problems
2003-02-18 15:22:10 +00:00
Jeremy Hylton
4edaa0d516
Copy the trace module here from Tools/scripts.
...
There are some problems with this module, but the tool works for
simple tasks and no one else has volunteered a better code coverage
tool. Should cleanup and document before the beta release.
2003-02-18 15:06:17 +00:00
Neal Norwitz
6fa635df7a
SF patch #687683 , Patches to logging (updates from Vinay)
...
Mostly rename WARN -> WARNING
Other misc tweaks
Update tests (not in original patch)
2003-02-18 14:20:07 +00:00
Jack Jansen
d6a3f93070
Use "$@" to pass arguments to Python in stead of "${1}". This passes all
...
arguments, and also does the right thing for the no argument case.
2003-02-18 11:24:31 +00:00
Andrew M. Kuchling
679bc9fce5
[Patch #681504 ] Call customize_compiler in config command
2003-02-18 01:28:51 +00:00
Neal Norwitz
2ff51a87b3
Make changes suggested by Walter to use self.assert*() methods.
2003-02-17 22:40:31 +00:00
Neal Norwitz
3b8fb47fb0
Import test_support properly
2003-02-17 22:38:56 +00:00
Tim Peters
003eb30882
test_posix is an expected skip on Win32. Also fixed test_posix to
...
import from test.test_support instead of directly from test_support.
2003-02-17 21:48:48 +00:00
Kurt B. Kaiser
003091cd51
M NEWS.txt
...
M PyShell.py
M ScriptBinding.py
M rpc.py
M run.py
Clean up the way IDLEfork handles termination of the subprocess, restore
ability to interrupt user code in Windows (so long as it's doing terminal
I/O).
1. Handle subprocess interrupts in Windows with an RPC message.
2. Run/F5 will restart the subprocess even if user code is running.
3. Restart the subprocess if the link is dropped.
4. Exit IDLE cleanly even during I/O.
4. In rpc.py, remove explicit calls to statelock, let the condition
variable handle acquire() and release().
2003-02-17 18:57:16 +00:00
Neal Norwitz
e241ce830a
Added test_posix (hopefully it works on Windows).
...
Remove PyArg_ParseTuple() for methods which take no args,
use METH_NOARGS instead
2003-02-17 18:17:05 +00:00