Did I find the right examples for you? yes no

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)
Twisted-enabled wrapper around L{warnings.showwarning}.

If C{file} is C{None}, the default behaviour is to emit the warning to
the log system, otherwise the original L{warnings.showwarning} Python
function is called.

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/test/test_log.py   hortonworks-sandbox(Download)
        """
        log.showwarning(
            FakeWarning("unique warning message"), FakeWarning,
            "warning-filename.py", 27)
        event = self.catcher.pop()
        # deprecation warning is emitted.
        log.showwarning(
            FakeWarning("unique warning message"), FakeWarning,
            "warning-filename.py", 27, line=object())
        event = self.catcher.pop()
 
        output = StringIO()
        log.showwarning(message, category, filename, lineno, file=output)
 
        self.assertEqual(
            line = "hello world"
            output = StringIO()
            log.showwarning(message, category, filename, lineno, file=output,
                            line=line)
 

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/test/test_log.py   SubliminalCollaborator(Download)
 
        output = StringIO()
        log.showwarning(message, category, filename, lineno, file=output)
 
        self.assertEqual(
            line = "hello world"
            output = StringIO()
            log.showwarning(message, category, filename, lineno, file=output,
                            line=line)
 

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/test/test_log.py   oh-mainline(Download)
 
        output = StringIO()
        log.showwarning(message, category, filename, lineno, file=output)
 
        self.assertEqual(
            line = "hello world"
            output = StringIO()
            log.showwarning(message, category, filename, lineno, file=output,
                            line=line)
 

src/t/w/Twisted-13.2.0/twisted/test/test_log.py   Twisted(Download)
 
        output = StringIO()
        log.showwarning(message, category, filename, lineno, file=output)
 
        self.assertEqual(
            line = "hello world"
            output = StringIO()
            log.showwarning(message, category, filename, lineno, file=output,
                            line=line)
 

src/u/n/UnitScan-HEAD/twisted/test/test_log.py   UnitScan(Download)
 
        output = StringIO()
        log.showwarning(message, category, filename, lineno, file=output)
 
        self.assertEqual(
            line = "hello world"
            output = StringIO()
            log.showwarning(message, category, filename, lineno, file=output,
                            line=line)
 

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/test/test_log.py   mythbox(Download)
 
        output = StringIO()
        log.showwarning(message, category, filename, lineno, file=output)
 
        self.assertEqual(
            line = "hello world"
            output = StringIO()
            log.showwarning(message, category, filename, lineno, file=output,
                            line=line)