Commits

Boris FELD committed 5515018

Do not include tests files for installation in setup.py. Clean setup.py for python3. Closes #72022. Closes #82417. Closes #76910.

Comments (0)

Files changed (1)

     from distutils.command import install_lib
     USE_SETUPTOOLS = 0
 
-# pylint needs to filter some test files expected to be wrong
-P3K_FILES_TO_IGNORE= ('test/input/func_noerror_encoding.py',
-                      'test/input/func_unknown_encoding.py',)
 try:
     # python3
     from distutils.command.build_py import build_py_2to3 as build_py
         if self.packages:
             self.build_packages()
             self.build_package_data()
-        # filter test files
-        self.updated_files = [f for f in self.updated_files
-                              if not f.endswith(P3K_FILES_TO_IGNORE)]
         # 2to3
         self.run_2to3(self.updated_files)
         # Remaining base class code
     for package in os.listdir(directory):
         absfile = join(directory, package)
         if isdir(absfile):
-            if exists(join(absfile, '__init__.py')) or \
-                   package in ('test', 'tests'):
+            if exists(join(absfile, '__init__.py')):
                 if prefix:
                     result.append('%s.%s' % (prefix, package))
                 else: