This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Regression exceptions for cygwin
Type: Stage:
Components: Tests Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: jlt63 Nosy List: gsw_agere, jlt63, loewis, nnorwitz, tim.peters
Priority: normal Keywords: patch

Created on 2002-05-03 19:19 by gsw_agere, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
regrtest.py.patch gsw_agere, 2002-05-03 19:19
regrtest.py.diff jlt63, 2002-12-05 14:41
regrtest.py.diff jlt63, 2003-02-05 16:33 skip test_ossaudiodev patch
Messages (14)
msg39842 - (view) Author: Gerald S. Williams (gsw_agere) Date: 2002-05-03 19:19
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.
msg39843 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-05-06 08:47
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.
msg39844 - (view) Author: Gerald S. Williams (gsw_agere) Date: 2002-05-07 13:21
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.
msg39845 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-05-07 16:23
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).
msg39846 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-12-04 10:25
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.
msg39847 - (view) Author: Jason Tishler (jlt63) * (Python triager) Date: 2002-12-05 14:41
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
msg39848 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-12-05 14:45
Logged In: YES 
user_id=21627

Sure. Go ahead!
msg39849 - (view) Author: Jason Tishler (jlt63) * (Python triager) Date: 2002-12-05 15:19
Logged In: YES 
user_id=86216

Checked in as Lib/test/regrtest.py 1.111.
msg39850 - (view) Author: Jason Tishler (jlt63) * (Python triager) Date: 2002-12-05 17:10
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)?
msg39851 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2002-12-05 17:20
Logged In: YES 
user_id=31435

I added test_bsddb3 to the cygwin skip list, so you don't have 
to.
msg39852 - (view) Author: Jason Tishler (jlt63) * (Python triager) Date: 2002-12-05 20:11
Logged In: YES 
user_id=86216

Thanks Tim!
msg39853 - (view) Author: Jason Tishler (jlt63) * (Python triager) Date: 2003-02-05 16:33
Logged In: YES 
user_id=86216

OK, to apply the skip test_ossaudiodev patch?
msg39854 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-02-05 16:45
Logged In: YES 
user_id=33168

Yes.
msg39855 - (view) Author: Jason Tishler (jlt63) * (Python triager) Date: 2003-02-05 16:52
Logged In: YES 
user_id=86216

Checked in as Lib/test/regrtest.py 1.123.
History
Date User Action Args
2022-04-10 16:05:17adminsetgithub: 36548
2002-05-03 19:19:43gsw_agerecreate