Selftest fails to start on Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Critical
|
Vincent Ladeuil |
Bug Description
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vincent's recent patch to use "termios" breaks the test suite on
Windows. Trying to run "bzr selftest" results in:
bzr: ERROR: No module named termios
You may need to install this Python library separately.
Reverting to bzr 4862 gets the test suite to run again.
The full traceback ends in:
File "d:\bzr\
from bzrlib.tests import test_osutils
File "d:\bzr\
import termios
ImportError: No module named termios
Looking here:
http://
It says the module is only available on Unix. I don't know what that
means for Mac, but it definitely isn't available on Windows.
John
=:->
affects bzr
status confirmed
importance critical
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAks
+b8AoJk9Ayr6s5j
=BCTL
-----END PGP SIGNATURE-----
Related branches
- Martin Pool: Approve
-
Diff: 41 lines (+20/-0)2 files modifiedNEWS (+5/-0)
doc/developers/testing.txt (+15/-0)
- Martin Pool: Needs Fixing
- John A Meinel: Approve
-
Diff: 208 lines (+106/-38)3 files modifiedNEWS (+4/-2)
bzrlib/osutils.py (+56/-15)
bzrlib/tests/test_osutils.py (+46/-21)
- Vincent Ladeuil: Approve
-
Diff: 31 lines (+4/-4)2 files modifiedbzrlib/lazy_regex.py (+3/-3)
doc/en/release-notes/bzr-2.7.txt (+1/-1)
Changed in bzr: | |
status: | Confirmed → Fix Committed |
Changed in bzr: | |
status: | Fix Committed → Fix Released |
A possible fix is: tests/test_ osutils. py' tests/test_ osutils. py 2009-12-04 10:09:11 +0000 tests/test_ osutils. py 2009-12-04 17:59:07 +0000
=== modified file 'bzrlib/
--- bzrlib/
+++ bzrlib/
@@ -23,7 +23,10 @@
import socket
import stat
import sys
-import termios
+try:
+ import termios
+except ImportError:
+ termios = None
import time
from bzrlib import (
self. assertEquals( None, osutils. terminal_ width() )
@@ -1962,6 +1965,8 @@
def test_TIOCGWINSZ (self): ed('termios is not available')
+ if termios is None:
+ raise tests.TestSkipp
# bug 63539 is about a termios without TIOCGWINSZ attribute
exist = True
try:
But it would be probably better to use a Feature for the test.