Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3k
Changeset: r60357:598293f5ca3e
Date: 2013-01-22 18:29 -0800
http://bitbucket.org/pypy/pypy/changeset/598293f5ca3e/

Log:    kill execfile tests from default

diff --git a/pypy/module/__builtin__/test/test_builtin.py 
b/pypy/module/__builtin__/test/test_builtin.py
--- a/pypy/module/__builtin__/test/test_builtin.py
+++ b/pypy/module/__builtin__/test/test_builtin.py
@@ -776,47 +776,3 @@
 
 class AppTestGetattrWithGetAttributeShortcut(AppTestGetattr):
     spaceconfig = {"objspace.std.getattributeshortcut": True}
-
-
-class TestInternal:
-    def test_execfile(self, space):
-        from rpython.tool.udir import udir
-        fn = str(udir.join('test_execfile'))
-        f = open(fn, 'w')
-        print >>f, "i=42"
-        f.close()
-
-        w_execfile = space.builtin.get("execfile")
-        w_dict = space.newdict()
-        space.call_function(w_execfile,
-            space.wrap(fn), w_dict, space.w_None)
-        w_value = space.getitem(w_dict, space.wrap('i'))
-        assert space.eq_w(w_value, space.wrap(42))
-
-    def test_execfile_different_lineendings(self, space): 
-        from rpython.tool.udir import udir
-        d = udir.ensure('lineending', dir=1)
-        dos = d.join('dos.py') 
-        f = dos.open('wb') 
-        f.write("x=3\r\n\r\ny=4\r\n")
-        f.close() 
-        space.appexec([space.wrap(str(dos))], """
-            (filename): 
-                d = {}
-                execfile(filename, d)
-                assert d['x'] == 3
-                assert d['y'] == 4
-        """)
-
-        unix = d.join('unix.py')
-        f = unix.open('wb') 
-        f.write("x=5\n\ny=6\n")
-        f.close() 
-
-        space.appexec([space.wrap(str(unix))], """
-            (filename): 
-                d = {}
-                execfile(filename, d)
-                assert d['x'] == 5
-                assert d['y'] == 6
-        """)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to