8000 bpo-15987: Add ast.AST class richcompare methods by flavianh · Pull Request #14970 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-15987: Add ast.AST class richcompare methods #14970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
8000
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use tokenize.open instead of open
  • Loading branch information
isidentical committed Mar 28, 2020
commit 552232c5dd524b42bd5a5d46426fd7364d40263f
3 changes: 2 additions & 1 deletion Lib/test/test_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import random
import sys
import tokenize
import unittest
import warnings
import weakref
Expand Down Expand Up @@ -694,7 +695,7 @@ def test_compare_stdlib(self):
for module in files:
with self.subTest(module):
fn = os.path.join(STDLIB, module)
with open(fn) as fp:
with tokenize.open(fn) as fp:
source = fp.read()
a = ast.parse(source, fn)
b = ast.parse(source, fn)
Expand Down
0