Skip to content

Commit

Permalink
Revert merge_pyi change that doesn't appear to be needed anymore.
Browse files Browse the repository at this point in the history
I ran the CI workflow with this change reverted, and it still passes.

PiperOrigin-RevId: 547294484
  • Loading branch information
rchen152 committed Jul 11, 2023
1 parent 9ace524 commit fed436a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pytype/tools/merge_pyi/merge_pyi_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import logging
import os
import re
import sys

from pytype.platform_utils import path_utils
from pytype.tools.merge_pyi import merge_pyi
Expand All @@ -16,9 +15,6 @@
PY, PYI, EXPECTED = 'py', 'pyi', 'pep484.py'
OVERWRITE_EXPECTED = 0 # flip to regenerate expected files

# Some tests are sensitive to the libcst version
SKIP_BEFORE_310 = {'pyi_variations'}


def load_tests(unused_loader, standard_tests, unused_pattern):
root = path_utils.join(path_utils.dirname(__file__), 'test_data')
Expand All @@ -42,9 +38,6 @@ def build(self, data_dir):
if not OVERWRITE_EXPECTED and EXPECTED not in files_by_ext:
continue

if sys.version_info < (3, 10) and base in SKIP_BEFORE_310:
continue

py, pyi = (files_by_ext[x] for x in (PY, PYI))
outfile = path_utils.join(data_dir, base + '.' + EXPECTED)

Expand Down

0 comments on commit fed436a

Please sign in to comment.