summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2014-06-10 11:48:59 -0700
committerThomas Kluyver <takowl@gmail.com>2014-06-10 11:48:59 -0700
commita50dcfdec8eaabbfbbe1f460d5282a79596913dc (patch)
tree01499ef2819bc7ba18e644d03e57a92946060768
parentce6e5f4f226a311d4c6b47ec359883359636a70c (diff)
downloadpexpect-a50dcfdec8eaabbfbbe1f460d5282a79596913dc.tar.gz
Minor fixes for replwrap testsreplwrap-test-fixes
-rw-r--r--tests/test_replwrap.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_replwrap.py b/tests/test_replwrap.py
index 8db2c39..a6ea956 100644
--- a/tests/test_replwrap.py
+++ b/tests/test_replwrap.py
@@ -12,7 +12,7 @@ class REPLWrapTestCase(unittest.TestCase):
super(REPLWrapTestCase, self).setUp()
self.save_ps1 = os.getenv('PS1', r'\$')
self.save_ps2 = os.getenv('PS2', '>')
- os.putenv('PS1', 'r\$')
+ os.putenv('PS1', r'\$')
os.putenv('PS2', '>')
def tearDown(self):
@@ -21,8 +21,6 @@ class REPLWrapTestCase(unittest.TestCase):
os.putenv('PS2', self.save_ps2)
def test_bash(self):
- os.putenv('PS1', r'\$')
- os.putenv('PS2', r'>')
bash = replwrap.bash()
res = bash.run_command("time")
assert 'real' in res, res