All Samples(43) | Call(0) | Derive(0) | Import(43)
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/3/z3c.sampledata-0.4.0/src/z3c/sampledata/tests.py z3c.sampledata(Download)
def test_suite():
return unittest.TestSuite((
doctest.DocFileSuite(
'README.txt',
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
),
doctest.DocFileSuite(
'generator/site.txt',
setUp=setUp, tearDown=tearDown,
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
doctest.DocFileSuite(
'generator/intids.txt',
setUp=setUp, tearDown=tearDown,
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
),
doctest.DocFileSuite(
'generator/pau.txt',
setUp=setUp, tearDown=tearDown,
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
),
doctest.DocFileSuite(
'generator/principals.txt',
setUp=setUp, tearDown=tearDown,
optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
src/a/n/an_example_pypi_project-0.0.5/tests/run_all.py an_example_pypi_project(Download)
import doctest
import test0
doctest.testmod(test0, optionflags=doctest.NORMALIZE_WHITESPACE |
doctest.ELLIPSIS |
doctest.REPORT_ONLY_FIRST_FAILURE
)
src/s/h/should_dsl-2.0a4/run_all_examples.py should_dsl(Download)
def test_suite():
flags = doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS
if sys.version_info >= (3,):
flags |= doctest.IGNORE_EXCEPTION_DETAIL
doctests_path = os.path.join('should_dsl', 'doctests')
suite = unittest.TestSuite()
suite.addTest(doctest.DocFileSuite('README.rst', optionflags=flags))
src/n/o/noc-0.5/contrib/src/WebTest/docs/chipy-presentation/proxy_example.py noc(Download)
import doctest
if __name__ == '__main__':
doctest.testfile('proxy_example.txt', optionflags=doctest.ELLIPSIS)
src/w/e/webtest-HEAD/docs/chipy-presentation/proxy_example.py webtest(Download)
import doctest
if __name__ == '__main__':
doctest.testfile('proxy_example.txt', optionflags=doctest.ELLIPSIS)
src/l/o/lovely.gae-1.0.0a2/example/app/tests.py lovely.gae(Download)
def test_suite():
views = DocFileSuite(
'views.txt',
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS,
)
s = unittest.TestSuite((views,),)
s.layer = dbLayer
src/p/s/psil-HEAD/psil.py psil(Download)
doctest.testfile(sys.argv[a])
else:
import psil.rt
doctest.testmod(psil.compiler, optionflags=doctest.ELLIPSIS)
doctest.testmod(psil.deparse, optionflags=doctest.ELLIPSIS)
doctest.testmod(psil.interpreter, optionflags=doctest.ELLIPSIS)
doctest.testmod(psil.reader, optionflags=doctest.ELLIPSIS)
doctest.testmod(psil.rt, optionflags=doctest.ELLIPSIS)
doctest.testmod(psil.symbol, optionflags=doctest.ELLIPSIS)
doctest.testfile("psil.test", optionflags=doctest.ELLIPSIS)
doctest.testfile("integ.test", optionflags=doctest.ELLIPSIS)
src/z/a/zamboni-lib-HEAD/lib/python/IPython/external/simplegeneric.py zamboni-lib(Download)
def test_suite():
import doctest
return doctest.DocFileSuite(
'README.txt',
optionflags=doctest.ELLIPSIS|doctest.REPORT_ONLY_FIRST_FAILURE,
)
src/m/i/MiniMock-1.2.5/minimock.py MiniMock(Download)
def __init__(self, *args, **kw):
self.out = StringIO()
super(TraceTracker, self).__init__(self.out, *args, **kw)
self.checker = MinimockOutputChecker()
self.options = doctest.ELLIPSIS
self.options |= doctest.NORMALIZE_INDENTATION
self.options |= doctest.NORMALIZE_FUNCTION_PARAMETERS
if __name__ == '__main__':
import doctest
doctest.testmod(optionflags=doctest.ELLIPSIS)
src/i/p/ipython-py3k-HEAD/IPython/external/simplegeneric.py ipython-py3k(Download)
def test_suite():
import doctest
return doctest.DocFileSuite(
'README.txt',
optionflags=doctest.ELLIPSIS|doctest.REPORT_ONLY_FIRST_FAILURE,
)
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next