.. only:: html

    .. note::
        :class: sphx-glr-download-link-note

        Click :ref:`here <sphx_glr_download_auto_examples_plot_second_future_imports.py>`     to download the full example code
    .. rst-class:: sphx-glr-example-title

    .. _sphx_glr_auto_examples_plot_second_future_imports.py:


Testing future statements across examples
-----------------------------------------

This example runs after plot_future_statements.py (alphabetical ordering within
subsection) and should be unaffected by the __future__ import in
plot_future_statements.py.








.. code-block:: python3

    # sphinx_gallery_thumbnail_path = '_static/demo.png'

    import sys
    from sphinx_gallery.sorting import ExplicitOrder

    ExplicitOrder([])  # must actually be used to become a backref target!

    PY2 = sys.version_info[0] == 2

    expected = 1 if PY2 else 1.5
    assert 3/2 == expected

    # Make sure print is a keyword not a function. Note: need to use exec because
    # otherwise you get a SyntaxError on Python 3
    if PY2:
        exec('print "test"')


.. rst-class:: sphx-glr-timing

   **Total running time of the script:** ( 0 minutes  0.001 seconds)


.. _sphx_glr_download_auto_examples_plot_second_future_imports.py:


.. only :: html

 .. container:: sphx-glr-footer
    :class: sphx-glr-footer-example



  .. container:: sphx-glr-download sphx-glr-download-python

     :download:`Download Python source code: plot_second_future_imports.py <plot_second_future_imports.py>`



  .. container:: sphx-glr-download sphx-glr-download-jupyter

     :download:`Download Jupyter notebook: plot_second_future_imports.ipynb <plot_second_future_imports.ipynb>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
