Commit 5fb5e9ce authored by Kevin Modzelewski's avatar Kevin Modzelewski

Take another pass over the failing cpython tests

parent 88eedd39
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
import textwrap import textwrap
......
# expected: fail
"""Unit tests for collections.defaultdict.""" """Unit tests for collections.defaultdict."""
import os import os
......
# expected: fail
import os, filecmp, shutil, tempfile import os, filecmp, shutil, tempfile
import unittest import unittest
from test import test_support from test import test_support
......
# expected: fail
# Python test set -- part 2, opcodes # Python test set -- part 2, opcodes
from test.test_support import run_unittest, check_py3k_warnings from test.test_support import run_unittest, check_py3k_warnings
......
# expected: fail
"""Basic tests for os.popen() """Basic tests for os.popen()
Particularly useful for platforms that fake popen. Particularly useful for platforms that fake popen.
......
# expected: fail
import unittest import unittest
import os import os
from test.test_support import TESTFN, run_unittest from test.test_support import TESTFN, run_unittest
......
...@@ -1752,7 +1752,7 @@ void setupFile() { ...@@ -1752,7 +1752,7 @@ void setupFile() {
file_cls->giveAttr("flush", new BoxedFunction(boxRTFunction((void*)fileFlush, NONE, 1))); file_cls->giveAttr("flush", new BoxedFunction(boxRTFunction((void*)fileFlush, NONE, 1)));
file_cls->giveAttr("write", new BoxedFunction(boxRTFunction((void*)fileWrite, NONE, 2))); file_cls->giveAttr("write", new BoxedFunction(boxRTFunction((void*)fileWrite, NONE, 2)));
file_cls->giveAttr("close", new BoxedFunction(boxRTFunction((void*)fileClose, NONE, 1))); file_cls->giveAttr("close", new BoxedFunction(boxRTFunction((void*)fileClose, UNKNOWN, 1)));
file_cls->giveAttr("fileno", new BoxedFunction(boxRTFunction((void*)fileFileno, BOXED_INT, 1))); file_cls->giveAttr("fileno", new BoxedFunction(boxRTFunction((void*)fileFileno, BOXED_INT, 1)));
file_cls->giveAttr("__repr__", new BoxedFunction(boxRTFunction((void*)fileRepr, STR, 1))); file_cls->giveAttr("__repr__", new BoxedFunction(boxRTFunction((void*)fileRepr, STR, 1)));
......
...@@ -51,91 +51,83 @@ The CPython tests I've included fail for various reasons. Recurring issues inclu ...@@ -51,91 +51,83 @@ The CPython tests I've included fail for various reasons. Recurring issues inclu
** list of files & why they're failing ** list of files & why they're failing
FILE REASONS FILE REASONS
------------------------------------------------------ ------------------------------------------------------
test_abstract_numbers missing .real attribute test_augassign missing oldstyle-class __add__, __iadd__, etc
test_augassign bugs in +=, compile()
test_bisect somehow sys.modules['_bisect'] is getting set to 0 test_bisect somehow sys.modules['_bisect'] is getting set to 0
test_builtin execfile scoping issue test_builtin execfile scoping issue
test_coercion serialize_ast bug (AST node not getting correct lineno or col_offset set) test_coercion 1**1L, divmod(1, 1L); some unknown bug
test_collections compile() test_collections doctest (dies in inspect.getmodule())
test_compare segfault test_compare "AssertionError: 2 != 0.0j"
test_complex serialize_ast assert test_complex need complex.__nonzero__
test_complex_args we apparently don't always unpack args correctly test_contextlib lock.locked attributes
test_contextlib file.closed, lock.locked attributes test_datetime needs _PyObject_GetDictPtr
test_datetime kwargs bug in BoxedMethodDescriptor test_decimal I think we need to copy decimaltestdata from cpython
test_decimal float.__getformat__ test_decorators decorator bug -- we evaluate decorator obj and its args in wrong order
test_decorators compile(), func_name attribute, and another bug in test_eval_order test_deque couple unknown issues
test_defaultdict "False is not true" test_descr wontfix: crashes at "self.__dict__ = self"
test_deque assert in _collectionsmodule.c test_descrtut doctest (dies in inspect.getmodule())
test_descr PySequence_Tuple test_dict need to handle repr of recursive structures (ie `d = {}; d['self'] = d; print d`)
test_descrtut doctest, compile() test_dictcomps we need to disallow assigning to dictcomps
test_dict infinite recursion in dict.__repr__
test_dictcomps compile()
test_dictviews various unique bugs test_dictviews various unique bugs
test_doctest code.co_firstlineno, compile() test_doctest doctest (dies in inspect.getmodule())
test_doctest2 code.co_firstlineno, compile() test_doctest2 doctest (sys.displayhook)
test_enumerate wrong assert in BoxedEnumerate test_enumerate assert instead of exception in BoxedEnumerate
test_exceptions segfault in dictIterNext test_exceptions we are missing recursion-depth checking
test_extcall doctest (compile()) test_extcall doctest (syss.displayhook())
test_file segfaults test_file wontfix: we don't destruct file objects when the test wants
test_file2k "Someone called abort!" test_file2k we abort when you try to open() a directory
test_file_eintr TypeError test_file_eintr not sure
test_filecmp float.__hash__ test_float float(long), a couple unknown things
test_float capifunc.__name__ in fractions test_format float(long)
test_format can't float(long) test_funcattrs we don't allow changing numing of function defaults
test_funcattrs segfault test_functools unknown errors
test_functools segfault test_generators doctest (sys.displayhook)
test_generators doctest (compile()) test_genexps doctest (sys.displayhook)
test_genexps doctest (compile()) test_getopt doctest (sys.displayhook)
test_getopt doctest (compile()) test_global SyntaxWarnings for global statements after uses
test_global compile()
test_grammar bug in our tokenizer test_grammar bug in our tokenizer
test_hash float.__hash__ test_hash number of hash bugs (all representations of '1' don't have the same hash; empty string is supposed to have 0 hash, etc)
test_index parseSlice assert test_index slice.indices, old-styl-class __mul__
test_int float.__getformat__ test_int we assert instead of throw exception
test_io parseSlice assert test_io memory/gc issue?
test_json doctest (compile()) test_json 'from test.script_helper import assert_python_ok' fails; sounds like it is trying to look at pycs
test_list assert in sliceIndex to do with a[1L:2L] test_list longs as slice indices
test_long float.__getformat__ test_long sys.long_info
test_math float.__getformat__ test_math float(long); sys.float_info, sys.displayhook
test_module exec in globals_ test_module unicode docstrings
test_mutants needs cmp() test_mutants unknown failure
test_opcodes TypeError: exceptions must be old-style classes or derived from BaseException, not instance test_operator PyNumber_Absolute()
test_operator BoxedCApiFunction::__call__: assert(varargs->elts.size() == 1) test_optparse assertion instead of exceptions for long("invalid number")
test_optparse long.cpp: _longNew: assert(r == 0)
test_pep277 segfaults test_pep277 segfaults
test_pep352 various unique bugs test_pep352 various unique bugs
test_pkg unknown bug test_pkg unknown bug
test_popen objmodel.cpp: callCLFunc: assert(chosen_cfg->spec->rtn_type->isFitBy(r->cls)) test_pow pow(3L, 3L, -8) fails
test_pow global name `pow' is not defined test_random long("invalid number")
test_property unknown bug test_repr complex.__hash__; some unknown issues
test_random floats unhashable test_richcmp PyObject_Not
test_repr complex.__hash__ test_scope eval of code object from existing function (not currently supported)
test_richcmp some missing C API functions test_set weird function-picking issue
test_scope eval of code object test_setcomps doctest (sys.displayhook)
test_set list.__hash__ test_sets doctest (sys.displayhook)
test_setcomps doctest (compile()) test_slice segfault
test_sets doctest (compile()) test_sort argument specification issue in listSort?
test_slice slice.__hash__
test_sort listSort(): cmp not supported
test_stat 16384 != 40960; I guess we implement stat wrong or something?
test_str memory leak? test_str memory leak?
test_string infinite loops in test_replace test_string infinite loops in test_replace
test_subprocess exit code 141, no error message test_subprocess exit code 141 [sigpipe?], no error message
test_tuple parseSlice assert test_tuple tuple features: ()*0L, tuple.count, tuple.__getslice__; "test_constructors" fails
test_types func_name attribute test_types PyErr_WarnEx
test_unary objmodel.cpp: unaryop: Assertion `attr_func' failed: str.__pos__ test_unary objmodel.cpp: unaryop: Assertion `attr_func' failed: str.__pos__
test_undocumented_details cmp() test_undocumented_details function.func_closure
test_unicode sys.maxunicode test_unicode argument passing issue?
test_unicode_file exit code 139, no error message test_unicode_file exit code 139, no error message
test_unittest serialize_ast assert test_unittest serialize_ast assert
test_unpack doctest (compile()) test_unpack doctest (sys.displayhook)
test_urllib2 doctest (compile()) test_urllib2 doctest (dies in inspect.getmodule())
test_userdict segfault test_userdict segfault: repr of recursive dict?
test_userlist sliceIndex assert test_userlist slice(1L, 1L)
test_userstring std::length_error test_userstring float(1L); hangs in test_replace
test_uuid long.cpp: _longNew: assert(r == 0) test_uuid long("invalid number")
test_weakref collector.cpp: runCollection: isValidGCObject(head) failed test_weakref weird function-picking bug (something around float.__add__)
test_weakset set.cpp: setIssubset: assert(container->cls == set_cls) test_weakset unknown issues
test_with objmodel.cpp: getclsattr: Assertion `gotten' failed: LacksExit:__exit__ test_with weird codegen assert
test_wsgiref ast_interpreter.cpp: createFunction: Assertion `closure' failed. test_wsgiref unknown issue
test_xrange xrange of long test_xrange unknown type analysis issue
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