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: test_posix fails on cygwin
Type: Stage:
Components: None Versions: Python 2.3
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: jlt63 Nosy List: jlt63, nnorwitz, wist
Priority: normal Keywords:

Created on 2005-04-10 11:10 by wist, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg24977 - (view) Author: Henrik Wist (wist) Date: 2005-04-10 11:10
$ python test/test_posix.py
testNoArgFunctions (__main__.PosixTester) ... ERROR
test_access (__main__.PosixTester) ... ok
test_chdir (__main__.PosixTester) ... ok
test_dup (__main__.PosixTester) ... ok
test_dup2 (__main__.PosixTester) ... ok
test_fdopen (__main__.PosixTester) ... ok
test_fstat (__main__.PosixTester) ... ok
test_fstatvfs (__main__.PosixTester) ... ok
test_ftruncate (__main__.PosixTester) ... ok
test_lsdir (__main__.PosixTester) ... ok
test_pipe (__main__.PosixTester) ... ok
test_stat (__main__.PosixTester) ... ok
test_statvfs (__main__.PosixTester) ... ok
test_strerror (__main__.PosixTester) ... ok
test_tempnam (__main__.PosixTester) ... ok
test_tmpfile (__main__.PosixTester) ... ok
test_umask (__main__.PosixTester) ... ok
test_utime (__main__.PosixTester) ... ok

======================================================================
ERROR: testNoArgFunctions (__main__.PosixTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_posix.py", line 40, in testNoArgFunctions
    posix_func()
OSError: [Errno 22] Invalid argument

----------------------------------------------------------------------
Ran 18 tests in 0.038s

FAILED (errors=1)
Traceback (most recent call last):
  File "test/test_posix.py", line 159, in ?
    test_main()
  File "test/test_posix.py", line 156, in test_main
    test_support.run_unittest(PosixTester)
  File "/usr/lib/python2.3/test/test_support.py", line
262, in run_unittest
    run_suite(suite, testclass)
  File "/usr/lib/python2.3/test/test_support.py", line
247, in run_suite
    raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent
call last):
  File "test/test_posix.py", line 40, in testNoArgFunctions
    posix_func()
OSError: [Errno 22] Invalid argument


This is with cygwin 1.5.12-1 and python 2.3.4-2.
msg24978 - (view) Author: Henrik Wist (wist) Date: 2005-04-10 11:12
Logged In: YES 
user_id=1256464

And, I forgot, this is with WinXP SP2
msg24979 - (view) Author: Henrik Wist (wist) Date: 2005-04-14 09:56
Logged In: YES 
user_id=1256464

Strangely enough, this works when deleting /etc/group or 
creating it with either local groups (mkgroup -l) or domain 
groups (mkgroup -d). I guess it is more a cygwin problem, 
then.
msg24980 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-09-30 05:34
Logged In: YES 
user_id=33168

Jason, any comments?
msg24981 - (view) Author: Jason Tishler (jlt63) * (Python triager) Date: 2005-10-03 12:08
Logged In: YES 
user_id=86216

AFAICT, this works correctly under Cygwin 1.5.18 and
Python 2.4.1:

$ python /usr/lib/python2.4/test/test_posix.py
testNoArgFunctions (__main__.PosixTester) ... ok
...
OK

Henrik's comment about /etc/group sounds like his Cygwin
installation was not set up correctly.

I'm closing this bug report. Please reopen if you think this is
still a problem.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41836
2005-04-10 11:10:37wistcreate