Skip to content
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

types.ClassType is not longer valid reference in py3 #65

Open
sgpy opened this issue Feb 3, 2019 · 0 comments
Open

types.ClassType is not longer valid reference in py3 #65

sgpy opened this issue Feb 3, 2019 · 0 comments

Comments

@sgpy
Copy link

sgpy commented Feb 3, 2019

Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 03:13:28)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

from mox import Mox
Traceback (most recent call last):
File "", line 1, in
File "/Users/sauravgupta/Desktop/modlettuce/assets/mox-0.5.3/mox.py", line 227, in
class Mox(object):
File "/Users/sauravgupta/Desktop/modlettuce/assets/mox-0.5.3/mox.py", line 232, in Mox
_USE_MOCK_OBJECT = [types.ClassType, types.FunctionType, types.InstanceType,
AttributeError: module 'types' has no attribute 'ClassType'

only valid types

[types.FunctionType,
types.ModuleType,
types.MethodType,
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant