'Test that rewritten modules don\'t inherit the __future__ flags
from the assertrewrite module.
assertion.rewrite imports __future__.division (and others), so
ensure rewritten modules don\'t inherit those flags.
The test below will fail if __future__.division is enabled'

@pytest.mark.skipif((sys.version_info[0] > 2), reason='python    2    only')
def test_rewrite_future_imports(self, testdir):

    testdir.makepyfile('\n                                                def    test():\n                                                                x    =    1    /    2\n                                                                assert    type(x)    is    int\n                                ')
    result = testdir.runpytest()
    assert (result.ret == 0)
