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

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)
Low-level inferface to warnings functionality.

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/log/warning.py   plexnet(Download)
    path = py.path.local(filename)
    warning = Warning(msg, path, lineno)
    py.std.warnings.warn_explicit(warning, category=Warning, 
        filename=str(warning.path), 
        lineno=warning.lineno,

src/n/u/nupic-linux64-HEAD/lib/python2.6/site-packages/py/_log/warning.py   nupic-linux64(Download)
    path = py.path.local(filename)
    warning = DeprecationWarning(msg, path, lineno)
    py.std.warnings.warn_explicit(warning, category=Warning,
        filename=str(warning.path),
        lineno=warning.lineno,

src/p/y/py-1.4.20/py/_log/warning.py   py(Download)
    path = py.path.local(filename)
    warning = DeprecationWarning(msg, path, lineno)
    py.std.warnings.warn_explicit(warning, category=Warning,
        filename=str(warning.path),
        lineno=warning.lineno,

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/plugin/pytest_recwarn.py   plexnet(Download)
    assert py.std.warnings.showwarning != showwarning
    assert not rec.list
    py.std.warnings.warn_explicit("hello", UserWarning, "xyz", 13)
    assert len(rec.list) == 1
    py.std.warnings.warn(DeprecationWarning("hello"))
def dep_explicit(i):
    if i == 0:
        py.std.warnings.warn_explicit("dep_explicit", category=DeprecationWarning, 
                                      filename="hello", lineno=3)
 

src/p/y/pytest-2.5.2/testing/test_recwarn.py   pytest(Download)
    assert py.std.warnings.showwarning != showwarning
    assert not rec.list
    py.std.warnings.warn_explicit("hello", UserWarning, "xyz", 13)
    assert len(rec.list) == 1
    py.std.warnings.warn(DeprecationWarning("hello"))
def dep_explicit(i):
    if i == 0:
        py.std.warnings.warn_explicit("dep_explicit", category=DeprecationWarning,
                                      filename="hello", lineno=3)