Commit 61c47830 authored by Marius Wachtler's avatar Marius Wachtler

fix test_fileio

parent 3307a633
......@@ -7,7 +7,8 @@ import re
import os.path
import tempfile
import subprocess
import py_compile
# Pyston change: we can't import this currently
# import py_compile
import contextlib
import shutil
try:
......
# expected: fail
# Adapted from test_file.py by Daniel Stutzbach
from __future__ import unicode_literals
......@@ -29,6 +28,8 @@ class AutoFileTests(unittest.TestCase):
self.f.close()
os.remove(TESTFN)
# Pyston change: disable this test becasue of GC
@unittest.skip("only works with refcounting")
def testWeakRefs(self):
# verify weak references
p = proxy(self.f)
......
......@@ -5590,7 +5590,9 @@ void Box::delattr(BoxedString* attr, DelattrRewriteArgs* rewrite_args) {
}
if (cls->instancesHaveDictAttrs()) {
Py_FatalError("unimplemented");
BoxedDict* d = getDict();
d->d.erase(attr);
return;
}
abort();
......
......@@ -95,7 +95,6 @@ test_exceptions we are missing recursion-depth checking
test_extcall f(**kw) crashes if kw isn't a dict
test_file2k we abort when you try to open() a directory
test_file_eintr not sure
test_fileio [unknown]
test_fork1 [unknown]
test_frozen [unknown]
test_ftplib [unknown]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment