diff options
| author | Georg Brandl <georg@python.org> | 2006-06-09 20:43:48 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2006-06-09 20:43:48 (GMT) |
| commit | b2afe855e5d75a570707d6bf0e32206e4b7b1c4d (patch) | |
| tree | b637a7e78de40cf155c471e702e9b465fcd0625d /Lib/test/test_tcl.py | |
| parent | 3ebef999e60cc63baafcdcfa0fd05c063715a66c (diff) | |
| download | cpython-b2afe855e5d75a570707d6bf0e32206e4b7b1c4d.zip cpython-b2afe855e5d75a570707d6bf0e32206e4b7b1c4d.tar.gz cpython-b2afe855e5d75a570707d6bf0e32206e4b7b1c4d.tar.bz2 | |
Make use of new str.startswith/endswith semantics.
Occurences in email and compiler were ignored due to backwards compat requirements.
Diffstat (limited to 'Lib/test/test_tcl.py')
| -rw-r--r-- | Lib/test/test_tcl.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index e3fbf98..fa170ef 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -130,10 +130,8 @@ class TclTest(unittest.TestCase): import os old_display = None import sys - if (sys.platform.startswith('win') or - sys.platform.startswith('darwin') or - sys.platform.startswith('cygwin')): - return # no failure possible on windows? + if sys.platform.startswith(('win', 'darwin', 'cygwin')): + return # no failure possible on windows? if 'DISPLAY' in os.environ: old_display = os.environ['DISPLAY'] del os.environ['DISPLAY'] |
