Add parentheses around numeric literals, to avoid turning 3 .bit_length() into 3.bit_length().
diff --git a/Demo/parser/test_unparse.py b/Demo/parser/test_unparse.py
index 5832b8f..0d13897 100644
--- a/Demo/parser/test_unparse.py
+++ b/Demo/parser/test_unparse.py
@@ -84,6 +84,9 @@
self.check_roundtrip("not True or False")
self.check_roundtrip("True or not False")
+ def test_integer_parens(self):
+ self.check_roundtrip("3 .__abs__()")
+
def test_chained_comparisons(self):
self.check_roundtrip("1 < 4 <= 5")
self.check_roundtrip("a is b is c is not d")