diff options
| author | Mark Dickinson <dickinsm@gmail.com> | 2010-06-28 19:54:19 +0000 |
|---|---|---|
| committer | Mark Dickinson <dickinsm@gmail.com> | 2010-06-28 19:54:19 +0000 |
| commit | 0187be082562471206fc0e7ee7231ecad591ab19 (patch) | |
| tree | 5bcf396691d513478df0e1529a928f8d261cbd06 /Demo/parser/test_unparse.py | |
| parent | ce3742c693820c0b6821217c266e061507ca45a9 (diff) | |
| download | cpython-git-0187be082562471206fc0e7ee7231ecad591ab19.tar.gz | |
unparse.py: fix mispaced parentheses in chained comparisons
Diffstat (limited to 'Demo/parser/test_unparse.py')
| -rw-r--r-- | Demo/parser/test_unparse.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Demo/parser/test_unparse.py b/Demo/parser/test_unparse.py index 4f3a28e52b..857b999829 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) |
