You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deftest_issue_walrus_issue_94(self):
source_code=dedent(""" if (pair := chairs.get(number, None)) is None: pass """
)
pmodel, debuginfo=parse_source(source_code,
options={"mode": 3},
html_debug_root_name="test_issue_walrus_issue_94")
self.assertNotIn("error", pmodel.errors)
Perhaps this error only happens with a lower version of Python - will need to check. As it stands, it looks promising that no changes to the Pynsource parser are needed, only a Python version bump. That is, assuming the source code fragment above reproduces the problem.
Activity
abulka commentedon Jun 29, 2021
This seems to pass OK under Python 3.9
Perhaps this error only happens with a lower version of Python - will need to check. As it stands, it looks promising that no changes to the Pynsource parser are needed, only a Python version bump. That is, assuming the source code fragment above reproduces the problem.
test for issue #94
better tests and parsing for issue #85, #93, #94 - tests pass under p…
alexchandel commentedon Jul 2, 2021
I think walrus entered in 3.8. I have 3.9 installed in
/usr/local(macOS) but I assume you don't use that. Source fragment was something like:test_issue_walrus_issue_94() now tested for in python 3.8, see #94
abulka commentedon Jul 8, 2021
Latest master branch and
1.78 betabinary release should have fixed this.Official
1.78release only a few days away.Note: Ubuntu Snap is stuck at Python 3.6 till Canonical fix their Snapcraft core20 stuff.