summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjquast <contact@jeffquast.com>2014-06-08 02:09:48 -0700
committerjquast <contact@jeffquast.com>2014-06-08 02:09:48 -0700
commitce6e5f4f226a311d4c6b47ec359883359636a70c (patch)
tree3d3c3c12ec9bfb768388d82aad9105751942b294
parent6a144134788a0c6601262ec008b83e4288bbb096 (diff)
downloadpexpect-ce6e5f4f226a311d4c6b47ec359883359636a70c.tar.gz
syntaxerr: missing r'literal' for unset PS1
-rw-r--r--tests/test_replwrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_replwrap.py b/tests/test_replwrap.py
index 3ee9f0c..8db2c39 100644
--- a/tests/test_replwrap.py
+++ b/tests/test_replwrap.py
@@ -10,7 +10,7 @@ from pexpect import replwrap
class REPLWrapTestCase(unittest.TestCase):
def setUp(self):
super(REPLWrapTestCase, self).setUp()
- self.save_ps1 = os.getenv('PS1', '\$')
+ self.save_ps1 = os.getenv('PS1', r'\$')
self.save_ps2 = os.getenv('PS2', '>')
os.putenv('PS1', 'r\$')
os.putenv('PS2', '>')