Skip to content

Remove six as a test dependency #15589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions mypyc/test-data/run-classes.test
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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