Blob Blame History Raw
From e20394e5cbd8d440c9c1868ddc25d036afcbfe45 Mon Sep 17 00:00:00 2001
From: Anthony Sottile <asottile@umich.edu>
Date: Tue, 13 Dec 2022 01:06:43 -0500
Subject: [PATCH] drop python3.6

github actions no longer supports it
---
 setup.py                   |  5 +----
 testsuite/test_api.py      |  5 ++++-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/setup.py b/setup.py
index fe96737..2fe5a11 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ setup(
     py_modules=['pycodestyle'],
     include_package_data=True,
     zip_safe=False,
-    python_requires='>=3.6',
+    python_requires='>=3.7',
     entry_points={
         'console_scripts': [
             'pycodestyle = pycodestyle:_main',
@@ -45,9 +45,6 @@ setup(
         'Operating System :: OS Independent',
         'Programming Language :: Python',
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.6',
-        'Programming Language :: Python :: 3.7',
-        'Programming Language :: Python :: 3.8',
         'Programming Language :: Python :: Implementation :: CPython',
         'Programming Language :: Python :: Implementation :: PyPy',
         'Topic :: Software Development :: Libraries :: Python Modules',
diff --git a/testsuite/test_api.py b/testsuite/test_api.py
index 8dde32f..38e34ac 100644
--- a/testsuite/test_api.py
+++ b/testsuite/test_api.py
@@ -329,7 +329,10 @@ class APITestCase(unittest.TestCase):
         count_errors = pep8style.input_file('stdin', lines=['\x00\n'])
 
         stdout = sys.stdout.getvalue()
-        expected = "stdin:1:1: E901 ValueError"
+        if sys.version_info < (3, 12):
+            expected = "stdin:1:1: E901 ValueError"
+        else:
+            expected = "stdin:1:1: E901 SyntaxError: source code string cannot contain null bytes"  # noqa: E501
         self.assertTrue(stdout.startswith(expected),
                         msg='Output %r does not start with %r' %
                         (stdout, expected))
-- 
2.41.0