Skip to content

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

Description

@sgpy

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,
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions