[Python-bugs-list] [ python-Bugs-777867 ] test_ioctl fails
SourceForge.net
noreply@sourceforge.net
Fri, 25 Jul 2003 16:52:34 -0700
Bugs item #777867, was opened at 2003-07-26 00:25
Message generated for change (Comment added) made by mwh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=777867&group_id=5470
Category: None
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Zooko O'Whielacronx (zooko)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_ioctl fails
Initial Comment:
test_ioctl
test test_ioctl failed -- errors occurred in
test.test_ioctl.IoctlTests
...
223 tests OK.
1 test failed:
test_ioctl
31 tests skipped:
test_aepack test_al test_bsddb185 test_bsddb3
test_bz2 test_cd
test_cl test_curses test_dbm test_email_codecs
test_gdbm test_gl
test_imgfile test_linuxaudiodev test_locale test_macfs
test_macostools test_nis test_normalization
test_ossaudiodev
test_pep277 test_plistlib test_scriptpackages
test_socket_ssl
test_socketserver test_sunaudiodev test_timeout
test_unicode_file
test_urllibnet test_winreg test_winsound
4 skips unexpected on linux2:
test_dbm test_bz2 test_gdbm test_locale
make: *** [test] Error 1
My system:
* Python from CVS: Python 2.3c1 (#1, Jul 23 2003,
08:31:24)
* Debian testing/unstable
* Linux pion 2.4.21 #1 Sat Jul 19 10:21:24 EDT 2003
i686 unknown unknown GNU/Linux
* gcc (GCC) 3.3.1 20030626 (Debian prerelease)
* AMD Athlon XP 1600+
----------------------------------------------------------------------
>Comment By: Michael Hudson (mwh)
Date: 2003-07-26 00:52
Message:
Logged In: YES
user_id=6656
Oh dear.
Could you hack 'make test' to pass -v to regrtest?
----------------------------------------------------------------------
Comment By: Zooko O'Whielacronx (zooko)
Date: 2003-07-26 00:44
Message:
Logged In: YES
user_id=52562
I cut and pasted the unit test code and ran it, and it passed.
So I suppose it's a bug in how "make test" invokes the
test_ioctl unit test?
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2003-07-26 00:33
Message:
Logged In: YES
user_id=6656
Can you dig? I.e. more info than "test_ioctl fails"... try running
the code that test_ioctl runs and see what that does
----------------------------------------------------------------------
Comment By: Zooko O'Whielacronx (zooko)
Date: 2003-07-26 00:33
Message:
Logged In: YES
user_id=52562
The stuff I posted when I opened this bug report was all
from running "make test". I have now discovered the
"regrtest.py" file and am experimenting with it. -s doesn't
seem to work for test_ioctl.py:
HACK pion:~/playground/python/python/dist/src$ ./python
./Lib/test/regrtest.py -v -s ./Lib/test/test_ioctl.py
./Lib/test/test_ioctl
test ./Lib/test/test_ioctl crashed -- exceptions.ValueError:
Empty module name
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 394, in runtest
the_package = __import__(abstest, globals(), locals(), [])
ValueError: Empty module name
1 test failed:
./Lib/test/test_ioctl
Traceback (most recent call last):
File "./Lib/test/regrtest.py", line 1005, in ?
main()
File "./Lib/test/regrtest.py", line 332, in main
os.unlink(filename)
OSError: [Errno 2] No such file or directory: '/tmp/pynexttest'
But running regrtest.py by itself runs a bunch of tests
including test_ioctl, apparently successfully:
HACK pion:~/playground/python/python/dist/src$ ./python
./Lib/test/regrtest.py
...
test_ioctl
...
224 tests OK.
31 tests skipped:
test_aepack test_al test_bsddb185 test_bsddb3 test_bz2
test_cd
test_cl test_curses test_dbm test_email_codecs test_gdbm
test_gl
test_imgfile test_linuxaudiodev test_locale test_macfs
test_macostools test_nis test_normalization test_ossaudiodev
test_pep277 test_plistlib test_scriptpackages
test_socket_ssl
test_socketserver test_sunaudiodev test_timeout
test_unicode_file
test_urllibnet test_winreg test_winsound
4 skips unexpected on linux2:
test_dbm test_bz2 test_gdbm test_locale
So I guess this is an "issue" in the make target rather than
in the ioctl code itself...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=777867&group_id=5470