Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix unsupported parser feature
  • Loading branch information
youknowone committed Oct 23, 2023
commit d765fb6f727e98695e8276785173b75cc4f4e8c6
4 changes: 2 additions & 2 deletions Lib/test/support/socket_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def _get_sysctl(name):
stderr=subprocess.STDOUT,
text=True)
if proc.returncode:
support.print_warning(f'{' '.join(cmd)!r} command failed with '
support.print_warning(f'{" ".join(cmd)!r} command failed with '
f'exit code {proc.returncode}')
# cache the error to only log the warning once
_sysctl_cache[name] = None
Expand All @@ -314,7 +314,7 @@ def _get_sysctl(name):
try:
value = int(output.strip())
except Exception as exc:
support.print_warning(f'Failed to parse {' '.join(cmd)!r} '
support.print_warning(f'Failed to parse {" ".join(cmd)!r} '
f'command output {output!r}: {exc!r}')
# cache the error to only log the warning once
_sysctl_cache[name] = None
Expand Down
3 changes: 1 addition & 2 deletions extra_tests/snippets/builtin_none.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ def none2():
assert None.__eq__(3) is NotImplemented
assert None.__ne__(3) is NotImplemented
assert None.__eq__(None) is True
assert None.__ne__(None) is False

# assert None.__ne__(None) is False # changed in 3.12