summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2015-12-12 16:48:28 -0800
committerJeff Quast <contact@jeffquast.com>2015-12-12 16:48:28 -0800
commit7f544d71e2bdef6b0f118802dfb25a65243dd58f (patch)
treefe80b4d48c6b1180f7a29307d7df1ffe97afa698
parent45e311c1a952f5c5bf3f4cd72a9bc44bc9dad785 (diff)
downloadpexpect-git-read_more_bytes.tar.gz
Change test condition: TRAVIS => Linux platformread_more_bytes
-rwxr-xr-xtests/test_interact.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/tests/test_interact.py b/tests/test_interact.py
index 865353b..76a071e 100755
--- a/tests/test_interact.py
+++ b/tests/test_interact.py
@@ -24,6 +24,7 @@ from __future__ import unicode_literals
import os
import pexpect
+import platform
import unittest
import sys
from . import PexpectTestCase
@@ -62,10 +63,12 @@ class InteractTestCase (PexpectTestCase.PexpectTestCase):
p.sendcontrol(']')
p.expect('29<STOP>')
p.send('\x00')
- if not os.environ.get('TRAVIS', None):
- # on Travis-CI, we sometimes miss trailing stdout from the
- # chain of child processes, not entirely sure why. So this
- # is skipped on such systems.
+
+ if not platform.system() == 'Linux':
+ # on Linux, we sometimes miss trailing stdout from the
+ # chain of child processes through a subprocess call to
+ # interact() method. This condition so far is only reproduced
+ # within these constraints so far, skipped for now.
p.expect('0<STOP>')
p.expect_exact('Escaped interact')
p.expect(pexpect.EOF)
@@ -84,10 +87,11 @@ class InteractTestCase (PexpectTestCase.PexpectTestCase):
p.expect('206<STOP>') # [206, 146]
p.expect('146<STOP>')
p.send('\x00')
- if not os.environ.get('TRAVIS', None):
- # on Travis-CI, we sometimes miss trailing stdout from the
- # chain of child processes, not entirely sure why. So this
- # is skipped on such systems.
+ if not platform.system() == 'Linux':
+ # on Linux, we sometimes miss trailing stdout from the
+ # chain of child processes through a subprocess call to
+ # interact() method. This condition so far is only reproduced
+ # within these constraints so far, skipped for now.
p.expect('0<STOP>')
p.expect_exact('Escaped interact')
p.expect(pexpect.EOF)