Did I find the right examples for you? yes no

All Samples(274)  |  Call(9)  |  Derive(0)  |  Import(265)

src/i/e/iepy-HEAD/examples/tvseries/tests/test_media_wiki_to_txt.py   iepy(Download)
from unittest import TestCase
try:
    from unittest import mock
except ImportError:
    import mock

src/c/o/Contexts-HEAD/test/functional_tests/examples_tests.py   Contexts(Download)
from unittest import mock
from .tools import run_object
from contexts.plugin_interface import PluginInterface, EXAMPLES, SETUP, ACTION, ASSERTION, TEARDOWN
from contexts import assertion
 

src/o/b/obspy-HEAD/obspy/core/compatibility.py   obspy(Download)
        import mock  # NOQA
    else:
        from unittest import mock  # NOQA
except:
    pass

src/s/u/supervisor-HEAD/supervisor/compat.py   supervisor(Download)
 
try: # pragma: no cover
    import unittest.mock as mock
except ImportError: # pragma: no cover
    import mock

src/s/t/stem-1.1.1/stem/prereq.py   stem(Download)
  try:
    # checks for python 3.3 version
    import unittest.mock
    return True
  except ImportError:

src/p/y/pyspotify-2.0.0b2/docs/conf.py   pyspotify(Download)
try:
    # Python 3.3+
    from unittest import mock
except ImportError:
    # Python <3.3

src/g/n/gns3-gui-HEAD/gns3/pages/cloud_preferences_page.py   gns3-gui(Download)
 
import importlib
from unittest import mock
 
 

src/p/y/pyspotify-HEAD/docs/conf.py   pyspotify(Download)
try:
    # Python 3.3+
    from unittest import mock
except ImportError:
    # Python <3.3

src/m/o/mockldap-0.2.0/setup.py   mockldap(Download)
 
try:
    import unittest.mock    # noqa
except ImportError:
    requires_mock = ['mock']

src/f/a/fauxquests-1.0.1/fauxquests/compat.py   fauxquests(Download)
# in Python 2.
try:
    from unittest import mock
except ImportError:
    import mock

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next