Skip to content

Commit a9f8df7

Browse files
authored
Remove six as a test dependency (#15589)
1 parent 186fbb1 commit a9f8df7

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

mypyc/test-data/run-classes.test

+3-14
Original file line numberDiff line numberDiff line change
@@ -1370,9 +1370,8 @@ except TypeError as e:
13701370

13711371
[case testMetaclass]
13721372
from meta import Meta
1373-
import six
13741373

1375-
class Nothing1(metaclass=Meta):
1374+
class Nothing(metaclass=Meta):
13761375
pass
13771376

13781377
def ident(x): return x
@@ -1381,26 +1380,16 @@ def ident(x): return x
13811380
class Test:
13821381
pass
13831382

1384-
class Nothing2(six.with_metaclass(Meta, Test)):
1385-
pass
1386-
1387-
@six.add_metaclass(Meta)
1388-
class Nothing3:
1389-
pass
1390-
13911383
[file meta.py]
1392-
from typing import Any
13931384
class Meta(type):
13941385
def __new__(mcs, name, bases, dct):
13951386
dct['X'] = 10
13961387
return super().__new__(mcs, name, bases, dct)
13971388

13981389

13991390
[file driver.py]
1400-
from native import Nothing1, Nothing2, Nothing3
1401-
assert Nothing1.X == 10
1402-
assert Nothing2.X == 10
1403-
assert Nothing3.X == 10
1391+
from native import Nothing
1392+
assert Nothing.X == 10
14041393

14051394
[case testPickling]
14061395
from mypy_extensions import trait, mypyc_attr

test-requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ pytest-xdist>=1.34.0
1414
pytest-cov>=2.10.0
1515
ruff==0.0.272 # must match version in .pre-commit-config.yaml
1616
setuptools>=65.5.1
17-
six
18-
tomli>=1.1.0
17+
tomli>=1.1.0 # needed even on py311+ so the self check passes with --python-version 3.7

0 commit comments

Comments
 (0)