Current File : //opt/imh-python/lib/python2.7/test/sample_doctest.pyo |
�
��Wc @ sc d Z d � Z d � Z d � Z d � Z d Z d � Z d � Z i d d 6d
d 6Z d � Z d
S( s This is a sample module that doesn't really test anything all that
interesting.
It simply has a few tests, some of which succeed and some of which fail.
It's important that the numbers remain constant as another test is
testing the running of these tests.
>>> 2+2
4
c C s d S( s+
>>> 2+2
5
>>> 2+2
4
N( ( ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/sample_doctest.pyt foo s c C s d S( s
>>> 2+2
4
N( ( ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/sample_doctest.pyt bar s c C s d S( sU
>>> import test.test_doctest
>>> test.test_doctest.sillySetup
True
N( ( ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/sample_doctest.pyt test_silly_setup s c C s d S( sj
>>> if 1:
... print 'a'
... print
... print 'b'
a
<BLANKLINE>
b
N( ( ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/sample_doctest.pyt w_blank( s i c C s d S( s
>>> x
1
N( ( ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/sample_doctest.pyt x_is_one4 s c C s d S( s
>>> y
1
N( ( ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/sample_doctest.pyt y_is_one: s sG
>>> 42
42
t goodsH
>>> 42
666
t badc C s d d l } | j � S( Ni����( t doctestt DocTestSuite( R ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/sample_doctest.pyt
test_suiteJ s N(
t __doc__R R R R t xR R t __test__R
( ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/sample_doctest.pyt <module> s