[Patches] [ python-Patches-544740 ] test_commands test fails under Cygwin

noreply@sourceforge.net noreply@sourceforge.net
Tue, 27 Aug 2002 11:14:11 -0700


Patches item #544740, was opened at 2002-04-16 08:00
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=544740&group_id=5470

>Category: Tests
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason Tishler (jlt63)
>Assigned to: Martin v. Löwis (loewis)
Summary: test_commands test fails under Cygwin

Initial Comment:
The Python 2.2.1 test_commands regression test
fails under Cygwin 1.3.10 because the regular
expression is pickier now and because Cygwin can
have spaces in user and/or group names. See the
following for some more details:

http://cygwin.com/ml/cygwin/2002-04/msg00774.html

and a workaround.

I'm submitting this as a bug report instead of a
patch because I don't know the best way to fix
this issue.  Can test_commands use numeric IDs
instead of names?  Should I discuss this issue
on python-dev instead of here?

BTW, please add a "Test" category to the
available choices for Bugs.

----------------------------------------------------------------------

Comment By: Jason Tishler (jlt63)
Date: 2002-08-27 10:12

Message:
Logged In: YES 
user_id=86216

Attached is a patch to fix this problem.  As
suggested by Guido, I am proposing a "better"
regular expression.

Unfortunately, I had to make an assumption on the
date format in order to match the user and group
names regardless of the number of embedded spaces.
Is my date regular expression acceptable?  Will it
work in non US locales?

FWIW, I tested under Cygwin and Red Hat Linux 7.1
without any ill effects.


----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-08-11 07:48

Message:
Logged In: YES 
user_id=33168

Jason, I presume this is still a problem.  It probably would
be a good idea to discuss on python-dev.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=544740&group_id=5470