summaryrefslogtreecommitdiff
path: root/Demo/parser/test_unparse.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-06-28 20:09:18 +0000
committerMark Dickinson <dickinsm@gmail.com>2010-06-28 20:09:18 +0000
commitf5451e546a720392c1ceef9c33db336e6ebd2d7e (patch)
tree969ea230b870e0dbc34bc758ec307f432feea0f6 /Demo/parser/test_unparse.py
parentae1000533ac2414975f666978e8fad5426d61095 (diff)
downloadcpython-git-f5451e546a720392c1ceef9c33db336e6ebd2d7e.tar.gz
Merged revisions 82345 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r82345 | mark.dickinson | 2010-06-28 20:54:19 +0100 (Mon, 28 Jun 2010) | 1 line unparse.py: fix mispaced parentheses in chained comparisons ........
Diffstat (limited to 'Demo/parser/test_unparse.py')
-rw-r--r--Demo/parser/test_unparse.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Demo/parser/test_unparse.py b/Demo/parser/test_unparse.py
index aa6f2704ef..edc9ee16f1 100644
--- a/Demo/parser/test_unparse.py
+++ b/Demo/parser/test_unparse.py
@@ -53,6 +53,10 @@ class UnparseTestCase(unittest.TestCase):
self.check_roundtrip("not True or False")
self.check_roundtrip("True or not False")
+ def test_chained_comparisons(self):
+ self.check_roundtrip("1 < 4 <= 5")
+ self.check_roundtrip("a is b is c is not d")
+
def test_main():
test.support.run_unittest(UnparseTestCase)