commit | af7adad51d149e66ee3eb66c1765914f0fd7f905 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Oct 22 11:22:50 2009 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Oct 22 11:22:50 2009 +0000 |
tree | bad46171fbca07a72f698e7a63e312fd952a5fd6 | |
parent | 42ead48dc17543c0d41d261fdf070a07f576c449 [diff] |
Peephole constant folding had missed UNARY_POSITIVE.
diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py index 5696500..9e8bb69 100644 --- a/Lib/test/test_peepholer.py +++ b/Lib/test/test_peepholer.py
@@ -150,6 +150,7 @@ for line, elem in ( ('-0.5', '(-0.5)'), # unary negative ('~-2', '(1)'), # unary invert + ('+1', '(1)'), # unary positive ): asm = dis_single(line) self.assertTrue(elem in asm, asm)