1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-15 04:22:17 -05:00
SickRage/lib/sqlalchemy/testing/mock.py

22 lines
627 B
Python
Raw Normal View History

2014-05-05 00:05:43 -04:00
# testing/mock.py
# Copyright (C) 2005-2014 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
2014-05-04 23:25:51 -04:00
"""Import stub for mock library.
"""
from __future__ import absolute_import
from ..util import py33
if py33:
2014-05-05 00:05:43 -04:00
from unittest.mock import MagicMock, Mock, call, patch
2014-05-04 23:25:51 -04:00
else:
try:
2014-05-05 00:05:43 -04:00
from mock import MagicMock, Mock, call, patch
2014-05-04 23:25:51 -04:00
except ImportError:
raise ImportError(
"SQLAlchemy's test suite requires the "
"'mock' library as of 0.8.2.")