Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/path/local/local.py   plexnet(Download)
            except KeyError:
                # we have a custom modname, do a pseudo-import
                mod = py.std.new.module(modname)
                mod.__file__ = str(self)
                sys.modules[modname] = mod

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/path/common.py   plexnet(Download)
        except KeyError:
            co = self._getpycodeobj()
            mod = py.std.new.module(modname)
            mod.__file__ = PathStr(self)
            if self.basename == '__init__.py':

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/testing/test_pluginmanager.py   plexnet(Download)
        testdir.makepyfile(pytest_plug1="#")
        testdir.makepyfile(pytest_plug2="#")
        mod = py.std.new.module("temp")
        mod.pytest_plugins = ["pytest_plug1", "pytest_plug2"]
        pluginmanager.consider_module(mod)
        assert pluginmanager.getplugin("plug1").__name__ == "pytest_plug1"
        assert pluginmanager.getplugin("plug2").__name__ == "pytest_plug2"
 
    def test_consider_module_import_module(self, testdir):
        mod = py.std.new.module("x")
    def test_register_imported_modules(self):
        pp = PluginManager()
        mod = py.std.new.module("x.y.pytest_hello")
        pp.register(mod)
        assert pp.isregistered(mod)
        assert pp.getplugins() == [mod]
        py.test.raises(AssertionError, "pp.register(mod)")
        mod2 = py.std.new.module("pytest_hello")

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/testing/test_outcome.py   plexnet(Download)
        py.test.raises(SyntaxError, "py.test.importorskip('x=y')")
        path = py.test.importorskip("py", minversion=".".join(py.__version__))
        mod = py.std.new.module("hello123")
        mod.__version__ = "1.3" 
        py.test.raises(Skipped, """