[Patches] [ python-Patches-551977 ] Regression exceptions for cygwin

noreply@sourceforge.net noreply@sourceforge.net
Thu, 05 Dec 2002 09:10:06 -0800


Patches item #551977, was opened at 2002-05-03 11:19
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=551977&group_id=5470

Category: Tests
Group: Python 2.3
>Status: Open
Resolution: None
Priority: 5
Submitted By: Gerald S. Williams (gsw_agere)
>Assigned to: Martin v. Löwis (loewis)
Summary: Regression exceptions for cygwin

Initial Comment:
This patch updates regrtest.py to understand which 
tests are normally skipped under Cygwin. The list of 
tests was verified with the Cygwin Python maintainer.

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

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

Message:
Logged In: YES 
user_id=86216

I just updated from CVS and noticed that I missed
test_bsddb3. Can I add it as an expected skip (like
test_curses)?

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

Comment By: Jason Tishler (jlt63)
Date: 2002-12-05 06:19

Message:
Logged In: YES 
user_id=86216

Checked in as Lib/test/regrtest.py 1.111.

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

Comment By: Martin v. Löwis (loewis)
Date: 2002-12-05 05:45

Message:
Logged In: YES 
user_id=21627

Sure. Go ahead!

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

Comment By: Jason Tishler (jlt63)
Date: 2002-12-05 05:41

Message:
Logged In: YES 
user_id=86216

OK to check in the slightly different, attached patch?

The differences between Jerry's and mine are the following:

1. added the following as suggested by Jerry:

test_curses
test_socket_ssl
test_socketserver

2. removed test_bsddb because it is supported now

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

Comment By: Martin v. Löwis (loewis)
Date: 2002-12-04 01:25

Message:
Logged In: YES 
user_id=21627

Jason, can you take a look and apply the patch if it looks ok?

It appears that the official policy is that all tests 
that "normally" can't run should be listed as expected skips.

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

Comment By: Martin v. Löwis (loewis)
Date: 2002-05-07 08:23

Message:
Logged In: YES 
user_id=21627

I'm quite unhappy with the entire _expectations mechanism.
E.g. the fact that test_email_codecs is skipped has
*nothing* to do with the distribution being build on
Windows, or with Cygwin; I'd rather see the expected fails
to take into account available resources (e.g. absence of
the Japanese codecs is a good reason for skipping the tests).

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

Comment By: Gerald S. Williams (gsw_agere)
Date: 2002-05-07 05:21

Message:
Logged In: YES 
user_id=329402

test_email_codecs is skipped unless the optional Japanese 
codecs are installed (this is also in the exceptions list 
for win32 and linux2).

Cygwin does not currently support large files, locales, or 
unicode file system semantics (test_unicode_file is also in 
the exceptions list for all but win32, test_locale is in 
most of them, and test_largefile is in *all* of them).

test_winreg is a stickier one. This is clearly specific to 
Windows, and the goal of Cygwin is to present a UNIX-like 
interface, not a Windows-like interface. There are patches 
that will enable this support under Cygwin Python, although 
they pull in quite a bit of the Windows-specific code and 
would create maintenance issues for Python's codebase. At 
present this is considered unsupported in Cygwin Python.

There are three additional tests that are in all or almost 
all of the exception lists:
 test_curses
 test_socket_ssl
 test_socketserver

These are disabled unless "-u" is used to specifically 
enable them. It appears that these should also be added to 
the list.

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

Comment By: Martin v. Löwis (loewis)
Date: 2002-05-06 00:47

Message:
Logged In: YES 
user_id=21627

I'd like to hear the rationale for skipping

test_email_codecs
test_largefile
test_locale
test_unicode_file
test_winreg

All of those *should* work just fine; if they don't, this
indicates a bug in this port.

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

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