• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(10)  |  Call(0)  |  Derive(0)  |  Import(10)
int(x[, base]) -> integer

Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.  If base is zero, the proper base is guessed based on the
string content.  If the argument is outside the integer range a
long object will be returned instead.

src/z/o/zope.testing-3.10.0/src/zope/testing/doctest/__init__.py   zope.testing(Download)
 
# Option constants.
 
from doctest import register_optionflag, \
    OPTIONFLAGS_BY_NAME, \
    DONT_ACCEPT_TRUE_FOR_1, \
    DONT_ACCEPT_BLANKLINE, \
 
            # If REPORT_ONLY_FIRST_FAILURE is set, then supress
            # reporting after the first failure.
            quiet = (self.optionflags & REPORT_ONLY_FIRST_FAILURE and
                     failures > 0)
 
            # Merge in the example's options.
            # so add the default reporting flags
            optionflags |= doctest._unittest_reportflags
 
        if doctest._unittest_reportflags & REPORT_ONLY_FIRST_FAILURE:
            optionflags |= REPORT_ONLY_FIRST_FAILURE
 
        runner = DocTestRunner(optionflags=optionflags,

src/z/a/zamboni-lib-HEAD/lib/python/IPython/testing/plugin/ipdoctest.py   zamboni-lib(Download)
 
# We are overriding the default doctest runner, so we need to import a few
# things from doctest directly
from doctest import (REPORTING_FLAGS, REPORT_ONLY_FIRST_FAILURE,
                     _unittest_reportflags, DocTestRunner,
                     _extract_future_flags, pdb, _OutputRedirectingPdb,
                     _exception_traceback,

src/i/p/ipython-py3k-HEAD/IPython/testing/plugin/ipdoctest.py   ipython-py3k(Download)
 
# We are overriding the default doctest runner, so we need to import a few
# things from doctest directly
from doctest import (REPORTING_FLAGS, REPORT_ONLY_FIRST_FAILURE,
                     _unittest_reportflags, DocTestRunner,
                     _extract_future_flags, pdb, _OutputRedirectingPdb,
                     _exception_traceback,

src/s/d/sdecstr-0.0.1/sdecstr/test.py   sdecstr(Download)
#!/usr/bin/env python
import unittest
from doctest import DocFileSuite, REPORT_ONLY_FIRST_FAILURE
 
from decimal import Decimal
from sdecstr import SDecStr
 
def test_suite():
    suite = DocFileSuite('sdecstr.txt', 'sa.txt',
                         optionflags = REPORT_ONLY_FIRST_FAILURE)
    return suite
 
 
if __name__ == '__main__':

src/s/a/sa_tools-0.0.1/sa_tools/test.py   sa_tools(Download)
#!/usr/bin/env python24
import unittest
from doctest import DocFileSuite, REPORT_ONLY_FIRST_FAILURE
 
def test_suite():
    suite = DocFileSuite('README.txt', 'latex.txt', 'wildcard.txt',
                         optionflags = REPORT_ONLY_FIRST_FAILURE)

src/p/y/PyBrain-0.3/pybrain/tests/testsuites.py   PyBrain(Download)
"""Module that contains several utilities for testing."""
 
__author__ = 'Justin Bayer, bayer.justin@googlemail.com'
__version__ = '$Id$'
 
 
from doctest import DocTestSuite, ELLIPSIS, REPORT_ONLY_FIRST_FAILURE, \
def runModuleTestSuite(module):
    """Runs a test suite for all local tests."""
    suite = TestSuite([TestLoader().loadTestsFromModule(module)])
 
    # Add local doctests
    optionflags = ELLIPSIS | NORMALIZE_WHITESPACE | REPORT_ONLY_FIRST_FAILURE
 

src/p/y/pybktools-0.0.1/pybktools/test.py   pybktools(Download)
#!/usr/bin/env python24
import unittest
from doctest import DocFileSuite, REPORT_ONLY_FIRST_FAILURE
 
 
 
def additional_tests():
    suite = DocFileSuite('pybktools.txt',
                         package='pybktools',
                         optionflags = REPORT_ONLY_FIRST_FAILURE)

src/p/y/py_1digit_checksum-0.0.1/py_1digit_checksum/test.py   py_1digit_checksum(Download)
#!/usr/bin/env python
import unittest
from doctest import DocFileSuite, REPORT_ONLY_FIRST_FAILURE
 
 
def test_suite():
    suite = DocFileSuite('verhoeff.txt', 
                         optionflags = REPORT_ONLY_FIRST_FAILURE)

src/i/p/ipython-0.10/IPython/testing/plugin/ipdoctest.py   ipython(Download)
 
# We are overriding the default doctest runner, so we need to import a few
# things from doctest directly
from doctest import (REPORTING_FLAGS, REPORT_ONLY_FIRST_FAILURE,
                     _unittest_reportflags, DocTestRunner,
                     _extract_future_flags, pdb, _OutputRedirectingPdb,
                     _exception_traceback,

src/i/b/ibanlib-0.0.2/ibanlib/test.py   ibanlib(Download)
#!/usr/bin/env python
 
import unittest
from doctest import DocFileSuite, REPORT_ONLY_FIRST_FAILURE
 
def test_suite():
    suite = DocFileSuite('README.txt',
                         package='ibanlib',
                         optionflags = REPORT_ONLY_FIRST_FAILURE)