'Check that the type of __builtins__ doesn\'t change with %run.
However, the above could pass if __builtins__ was already modified to
be a dict (it should be a module) by a previous use of %run.  So we
also check explicitly that it really is a module:'

def test_builtins_type(self):

    _ip = get_ipython()
    self.run_tmpfile()
    nt.assert_equal(type(_ip.user_ns['__builtins__']), type(sys))
