You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
16 lines
426 B
Python
16 lines
426 B
Python
# From 3.6.8 idlelib/query.py
|
|
# Bug was handling parenthesis around subscript in an assignment.
|
|
|
|
# RUNNABLE!
|
|
a = {'text': 1}
|
|
b = {'text': 3}
|
|
for widget, entry, expect in (
|
|
(a, b, 1),
|
|
(None, b, 3)
|
|
):
|
|
assert (widget or entry)['text'] == expect
|
|
(widget or entry)['text'] = 'A'
|
|
|
|
assert a['text'] == 'A', "a[text] = %s != 'A'" % a['text']
|
|
assert b['text'] == 'A', "a[text] = %s != 'A'" % b['text']
|