Changeset 45:e68ad29eb313 in orange-reliability


Ignore:
Timestamp:
10/03/13 23:37:53 (6 months ago)
Author:
markotoplak
Branch:
default
Message:

Reverted last commit.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • docs/rst/conf.py

    r44 r45  
    1010 
    1111import sys, os 
    12  
    13 class Mock(object): 
    14     def __init__(self, *args, **kwargs): 
    15         pass 
    16  
    17     def __call__(self, *args, **kwargs): 
    18         return Mock() 
    19  
    20     @classmethod 
    21     def __getattr__(cls, name): 
    22         if name in ('__file__', '__path__'): 
    23             return '/dev/null' 
    24         elif name[0] == name[0].upper(): 
    25             mockType = type(name, (), {}) 
    26             mockType.__module__ = __name__ 
    27             return mockType 
    28         else: 
    29             return Mock() 
     12import mock 
    3013 
    3114MOCK_MODULES = ["numpy", "numpy.core", "numpy.core.ma", "scipy", "scipy.stats", "ma", "linalg"] 
    3215for mod_name in MOCK_MODULES: 
    33     sys.modules[mod_name] = Mock() 
     16    sys.modules[mod_name] = mock.Mock() 
    3417 
    3518import imp 
  • rtd-requirements.txt

    r44 r45  
     1mock 
    12-e hg+http://bitbucket.org/biolab/orange#egg=Orange 
Note: See TracChangeset for help on using the changeset viewer.