-
-
Notifications
You must be signed in to change notification settings - Fork 445
Closed
Description
Description
assertion comparison wrong in version 3.4.0
but it's correct in version 3.3.0
How to Reproduce
source:
c = 3
assert c < 2, ('Oops')
if c < 2:
raise SyntaxError('Oops')decompile from version 3.4.0
c = 3
assert c < 2, 'Oops'
assert c < 2, 'Oops'Expected behavior
decompile from version 3.3.0
c = 3
if not c < 2:
raise AssertionError('Oops')
if c < 2:
raise SyntaxError('Oops')so version 3.4 should be:
c = 3
assert c < 2, 'Oops'
assert not(c < 2), 'Oops'Environment
- Uncompyle6 version: 3.4.0
- Python version: 3.6.8
- OS and Version: Ubuntu bionic
Metadata
Metadata
Assignees
Labels
No labels