Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
61c47830
Commit
61c47830
authored
Feb 05, 2016
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test_fileio
parent
3307a633
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
from_cpython/Lib/test/script_helper.py
from_cpython/Lib/test/script_helper.py
+2
-1
from_cpython/Lib/test/test_fileio.py
from_cpython/Lib/test/test_fileio.py
+2
-1
src/runtime/objmodel.cpp
src/runtime/objmodel.cpp
+3
-1
test/CPYTHON_TEST_NOTES.md
test/CPYTHON_TEST_NOTES.md
+0
-1
No files found.
from_cpython/Lib/test/script_helper.py
View file @
61c47830
...
...
@@ -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
:
...
...
from_cpython/Lib/test/test_fileio.py
View file @
61c47830
# 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
)
...
...
src/runtime/objmodel.cpp
View file @
61c47830
...
...
@@ -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
();
...
...
test/CPYTHON_TEST_NOTES.md
View file @
61c47830
...
...
@@ -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]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment