Skip to content

Commit

Permalink
Remove six as a test dependency (#15589)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Jul 4, 2023
1 parent 186fbb1 commit a9f8df7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
17 changes: 3 additions & 14 deletions mypyc/test-data/run-classes.test
Expand Up @@ -1370,9 +1370,8 @@ except TypeError as e:

[case testMetaclass]
from meta import Meta
import six

class Nothing1(metaclass=Meta):
class Nothing(metaclass=Meta):
pass

def ident(x): return x
Expand All @@ -1381,26 +1380,16 @@ def ident(x): return x
class Test:
pass

class Nothing2(six.with_metaclass(Meta, Test)):
pass

@six.add_metaclass(Meta)
class Nothing3:
pass

[file meta.py]
from typing import Any
class Meta(type):
def __new__(mcs, name, bases, dct):
dct['X'] = 10
return super().__new__(mcs, name, bases, dct)


[file driver.py]
from native import Nothing1, Nothing2, Nothing3
assert Nothing1.X == 10
assert Nothing2.X == 10
assert Nothing3.X == 10
from native import Nothing
assert Nothing.X == 10

[case testPickling]
from mypy_extensions import trait, mypyc_attr
Expand Down
3 changes: 1 addition & 2 deletions test-requirements.txt
Expand Up @@ -14,5 +14,4 @@ pytest-xdist>=1.34.0
pytest-cov>=2.10.0
ruff==0.0.272 # must match version in .pre-commit-config.yaml
setuptools>=65.5.1
six
tomli>=1.1.0
tomli>=1.1.0 # needed even on py311+ so the self check passes with --python-version 3.7

0 comments on commit a9f8df7

Please sign in to comment.