Skip to content

Commit

Permalink
TEMP: disable broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
KotlinIsland committed Jul 26, 2022
1 parent 23643fd commit 7ffcd53
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions mypyc/test-data/run-classes.test
Original file line number Diff line number Diff line change
Expand Up @@ -1293,39 +1293,39 @@ try:
except TypeError as e:
assert(str(e) == "mypyc classes can't have a metaclass")

[case testMetaclass]
from meta import Meta
import six

class Nothing1(metaclass=Meta):
pass

def ident(x): return x

@ident
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
--[case testMetaclass]
--from meta import Meta
--import six
--
--class Nothing1(metaclass=Meta):
-- pass
--
--def ident(x): return x
--
--@ident
--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

[case testPickling]
from mypy_extensions import trait, mypyc_attr
Expand Down

0 comments on commit 7ffcd53

Please sign in to comment.