A couple more bugs found running 2.7 stdlib tests

This commit is contained in:
rocky
2017-11-24 10:22:58 -05:00
parent f908e8dd8e
commit 37b8e21c76
10 changed files with 32 additions and 5 deletions

View File

@@ -10,3 +10,9 @@
def formatweekday(self):
with self as encoding:
return encoding
# Bug in 2.7.14 test_contextlib.py. Bug was not enclosing (x,y) in parenthesis
def withas_bug(self, nested, a, b):
with self.assertRaises(ZeroDivisionError):
with nested(a(), b()) as (x, y):
1 // 0