Commit 6c21cee6 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Change 'expected: fail' to 'skip-if' since they work on some platforms and not others

parent 468ce1e2
...@@ -1023,6 +1023,7 @@ Box* getattrInternalGeneral(Box* obj, const std::string& attr, GetattrRewriteArg ...@@ -1023,6 +1023,7 @@ Box* getattrInternalGeneral(Box* obj, const std::string& attr, GetattrRewriteArg
_get_ = typeLookup(descr->cls, "__get__", NULL); _get_ = typeLookup(descr->cls, "__get__", NULL);
} }
// As an optimization, don't check for __set__ if we're in cls_only mode, since it won't matter.
if (_get_ && !cls_only) { if (_get_ && !cls_only) {
// Check if __set__ exists // Check if __set__ exists
Box* _set_ = NULL; Box* _set_ = NULL;
......
# expected: fail # skip-if: sys.version_info.micro >= 4
# - Error message changed in 2.7.4
# Regression test: # Regression test:
# If the init function doesn't exist, shouldn't just silently ignore any args # If the init function doesn't exist, shouldn't just silently ignore any args
# that got passed # that got passed
......
# expected: fail # skip-if: sys.version_info.micro >= 4
# - Error message changed in 2.7.4
# object.__new__ doesn't complain if __init__ is overridden: # object.__new__ doesn't complain if __init__ is overridden:
class C1(object): class C1(object):
......
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