Commit 5c72271e authored by Michael Arntzenius's avatar Michael Arntzenius

mark many CPython tests as failing

parent 5af38295
...@@ -87,6 +87,10 @@ def bisect_left(a, x, lo=0, hi=None): ...@@ -87,6 +87,10 @@ def bisect_left(a, x, lo=0, hi=None):
# Overwrite above definitions with a fast C implementation # Overwrite above definitions with a fast C implementation
try: try:
# Pyston FIXME: somehow sys.modules['_bisect'] is being bound to 0, which is tripping an assert in importStar.
# import sys
# print '_bisect' in sys.modules
# print sys.modules['_bisect']
from _bisect import * from _bisect import *
except ImportError: except ImportError:
pass pass
# expected: fail
# Copyright 2007 Google, Inc. All Rights Reserved. # Copyright 2007 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement. # Licensed to PSF under a Contributor Agreement.
......
# expected: fail
"""Unit tests for numbers.py.""" """Unit tests for numbers.py."""
import math import math
......
# expected: fail
# Augmented assignment test. # Augmented assignment test.
from test.test_support import run_unittest, check_py3k_warnings from test.test_support import run_unittest, check_py3k_warnings
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
import base64 import base64
......
# expected: fail
# need `exec' support
"""Tests for binary operators on subtypes of built-in types.""" """Tests for binary operators on subtypes of built-in types."""
import unittest import unittest
......
# expected: fail
#
# fails b/c of a problem in bisect.py. see that.
import sys import sys
import unittest import unittest
from test import test_support from test import test_support
......
# expected: fail
# Test properties of bool promised by PEP 285 # Test properties of bool promised by PEP 285
import unittest import unittest
......
# expected: fail
# Python test set -- built-in functions # Python test set -- built-in functions
import platform import platform
......
# expected: fail
# this trips an assert in pypa-parser.cpp
"""Unit tests for the bytes and bytearray types. """Unit tests for the bytes and bytearray types.
XXX This is a mess. Common tests should be moved to buffer_tests.py, XXX This is a mess. Common tests should be moved to buffer_tests.py,
......
# expected: fail
# needs exec and (foo[:] = bar)
"Test the functionality of Python classes implementing operators." "Test the functionality of Python classes implementing operators."
import unittest import unittest
......
# expected: fail
import copy import copy
import unittest import unittest
from test.test_support import run_unittest, TestFailed, check_warnings from test.test_support import run_unittest, TestFailed, check_warnings
......
# expected: fail
import unittest, doctest, operator import unittest, doctest, operator
import inspect import inspect
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
......
# expected: fail
from test.test_support import have_unicode, run_unittest from test.test_support import have_unicode, run_unittest
import unittest import unittest
......
# expected: fail
"""Unit tests for contextlib.py, and other context managers.""" """Unit tests for contextlib.py, and other context managers."""
import sys import sys
......
# expected: fail
"""Test date/time type. """Test date/time type.
See http://www.zope.org/Members/fdrake/DateTimeWiki/TestCases See http://www.zope.org/Members/fdrake/DateTimeWiki/TestCases
......
# expected: fail
# Copyright (c) 2004 Python Software Foundation. # Copyright (c) 2004 Python Software Foundation.
# All rights reserved. # All rights reserved.
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
......
# expected: fail
"""Unit tests for collections.defaultdict.""" """Unit tests for collections.defaultdict."""
import os import os
......
# expected: fail
from collections import deque from collections import deque
import unittest import unittest
from test import test_support, seq_tests from test import test_support, seq_tests
......
# expected: fail
import __builtin__ import __builtin__
import gc import gc
import sys import sys
......
# expected: fail
# This contains most of the executable examples from Guido's descr # This contains most of the executable examples from Guido's descr
# tutorial, once at # tutorial, once at
# #
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
......
# expected: fail
import unittest import unittest
from test import test_support as support from test import test_support as support
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
......
# expected: fail
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
Test script for doctest. Test script for doctest.
......
# expected: fail
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
u"""A module to test whether doctest recognizes some 2.2 features, u"""A module to test whether doctest recognizes some 2.2 features,
like static and class methods. like static and class methods.
......
# expected: fail
import unittest import unittest
import sys import sys
......
# expected: fail
# Python test set -- part 5, built-in exceptions # Python test set -- part 5, built-in exceptions
import os import os
......
# expected: fail
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
"""Doctest for method/function calls. """Doctest for method/function calls.
......
# expected: fail
# NOTE: this file tests the new `io` library backported from Python 3.x. # NOTE: this file tests the new `io` library backported from Python 3.x.
# Similar tests for the builtin file object can be found in test_file2k.py. # Similar tests for the builtin file object can be found in test_file2k.py.
......
# expected: fail
import sys import sys
import os import os
import unittest import unittest
......
# expected: fail
# Written to test interrupted system calls interfering with our many buffered # Written to test interrupted system calls interfering with our many buffered
# IO implementations. http://bugs.python.org/issue12268 # IO implementations. http://bugs.python.org/issue12268
# #
......
# expected: fail
import os, filecmp, shutil, tempfile import os, filecmp, shutil, tempfile
import unittest import unittest
......
# expected: fail
''' '''
Tests for fileinput module. Tests for fileinput module.
Nick Mathewson Nick Mathewson
......
# expected: fail
import unittest, struct import unittest, struct
import os import os
......
# expected: fail
import sys import sys
from test.test_support import verbose, have_unicode, TestFailed from test.test_support import verbose, have_unicode, TestFailed
import test.test_support as test_support import test.test_support as test_support
......
# expected: fail
from test import test_support from test import test_support
import types import types
import unittest import unittest
......
# expected: fail
import functools import functools
import sys import sys
import unittest import unittest
......
# expected: fail
tutorial_tests = """ tutorial_tests = """
Let's try a simple generator: Let's try a simple generator:
......
# expected: fail
doctests = """ doctests = """
Test simple loop with conditional Test simple loop with conditional
......
# expected: fail
# test_getopt.py # test_getopt.py
# David Goodger <dgoodger@bigfoot.com> 2000-08-19 # David Goodger <dgoodger@bigfoot.com> 2000-08-19
......
# expected: fail
"""Verify that warnings are issued for global statements following use.""" """Verify that warnings are issued for global statements following use."""
from test.test_support import run_unittest, check_syntax_error from test.test_support import run_unittest, check_syntax_error
......
# expected: fail
# Python test set -- part 1, grammar. # Python test set -- part 1, grammar.
# This just tests whether the parser accepts them all. # This just tests whether the parser accepts them all.
......
# expected: fail
# test the invariant that # test the invariant that
# iff a==b then hash(a)==hash(b) # iff a==b then hash(a)==hash(b)
# #
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
import operator import operator
......
# expected: fail
import sys import sys
import unittest import unittest
......
# expected: fail
"""Unit tests for the io module.""" """Unit tests for the io module."""
# Tests of io are scattered over the test suite: # Tests of io are scattered over the test suite:
......
# expected: fail
# Tests some corner cases with isinstance() and issubclass(). While these # Tests some corner cases with isinstance() and issubclass(). While these
# tests use new style classes and properties, they actually do whitebox # tests use new style classes and properties, they actually do whitebox
# testing of error conditions uncovered when using extension types. # testing of error conditions uncovered when using extension types.
......
# expected: fail
# Test iterators. # Test iterators.
import unittest import unittest
......
# expected: fail
""" Test Iterator Length Transparency """ Test Iterator Length Transparency
Some functions or methods which accept general iterable arguments have Some functions or methods which accept general iterable arguments have
......
# expected: fail
# fails because capifunc's don't have __name__ attributes,
# which causes from_cpython/Lib/fractions.py to error
import unittest import unittest
from test import test_support from test import test_support
from itertools import * from itertools import *
......
# expected: fail
"""Tests for json. """Tests for json.
The tests for json are defined in the json.tests package; The tests for json are defined in the json.tests package;
......
# expected: fail
import sys import sys
from test import test_support, list_tests from test import test_support, list_tests
......
# expected: fail
import unittest import unittest
import sys import sys
......
# expected: fail
# Python test set -- math module # Python test set -- math module
# XXXX Should not do tests around zero only # XXXX Should not do tests around zero only
......
# expected: fail
# Test the module type # Test the module type
import unittest import unittest
from test.test_support import run_unittest, gc_collect from test.test_support import run_unittest, gc_collect
......
# expected: fail
from test.test_support import verbose, TESTFN from test.test_support import verbose, TESTFN
import random import random
import os import os
......
# 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
import operator import operator
import unittest import unittest
......
# expected: fail
# #
# Test suite for Optik. Supplied by Johannes Gijsbers # Test suite for Optik. Supplied by Johannes Gijsbers
# (taradino@softhome.net) -- translated from the original Optik # (taradino@softhome.net) -- translated from the original Optik
......
# expected: fail
# Test the Unicode versions of normal file functions # Test the Unicode versions of normal file functions
# open, os.open, os.stat. os.listdir, os.rename, os.remove, os.mkdir, os.chdir, os.rmdir # open, os.open, os.stat. os.listdir, os.rename, os.remove, os.mkdir, os.chdir, os.rmdir
import sys, os, unittest import sys, os, unittest
......
# expected: fail
import unittest import unittest
import __builtin__ import __builtin__
import exceptions import exceptions
......
# expected: fail
# Test packages (dotted-name import) # Test packages (dotted-name import)
import sys import sys
......
# 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 test.test_support, unittest import test.test_support, unittest
class PowTest(unittest.TestCase): class PowTest(unittest.TestCase):
......
# expected: fail
# Test case for property # Test case for property
# more tests are in test_descr # more tests are in test_descr
......
# expected: fail
import unittest import unittest
import random import random
import time import time
......
# expected: fail
""" """
Test cases for the repr module Test cases for the repr module
Nick Mathewson Nick Mathewson
......
# expected: fail
# Tests for rich comparisons # Tests for rich comparisons
import unittest import unittest
......
# expected: fail
import unittest import unittest
from test.test_support import check_syntax_error, check_py3k_warnings, \ from test.test_support import check_syntax_error, check_py3k_warnings, \
check_warnings, run_unittest check_warnings, run_unittest
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
......
# expected: fail
doctests = """ doctests = """
########### Tests mostly copied from test_listcomps.py ############ ########### Tests mostly copied from test_listcomps.py ############
......
# expected: fail
import unittest, operator, copy, pickle, random import unittest, operator, copy, pickle, random
from test import test_support from test import test_support
......
# expected: fail
# tests for slice objects; in particular the indices method. # tests for slice objects; in particular the indices method.
import unittest import unittest
......
# expected: fail
from test import test_support from test import test_support
import random import random
import sys import sys
......
# 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
......
# expected: fail
import unittest import unittest
import struct import struct
import sys import sys
......
# skip-if: True
# expected: fail
# this test gets stuck in an infinite loop(?) in test_replace (from string_tests)
import unittest, string import unittest, string
from test import test_support, string_tests from test import test_support, string_tests
from UserList import UserList from UserList import UserList
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
import subprocess import subprocess
......
# expected: fail
from test import test_support, seq_tests from test import test_support, seq_tests
import gc import gc
......
# expected: fail
# Python test set -- part 6, built-in types # Python test set -- part 6, built-in types
from test.test_support import run_unittest, have_unicode, run_with_locale, \ from test.test_support import run_unittest, have_unicode, run_with_locale, \
......
# expected: fail
""" Test script for the Unicode implementation. """ Test script for the Unicode implementation.
Written by Bill Tutt. Written by Bill Tutt.
......
# expected: fail
"""Test compiler changes for unary ops (+, -, ~) introduced in Python 2.2""" """Test compiler changes for unary ops (+, -, ~) introduced in Python 2.2"""
import unittest import unittest
......
# expected: fail
from test.test_support import run_unittest, check_py3k_warnings from test.test_support import run_unittest, check_py3k_warnings
import unittest import unittest
......
# expected: fail
""" Test script for the Unicode implementation. """ Test script for the Unicode implementation.
Written by Marc-Andre Lemburg (mal@lemburg.com). Written by Marc-Andre Lemburg (mal@lemburg.com).
......
# expected: fail
# Test some Unicode file name semantics # Test some Unicode file name semantics
# We dont test many operations on files other than # We dont test many operations on files other than
# that their names can be used with Unicode characters. # that their names can be used with Unicode characters.
......
# expected: fail
import unittest.test import unittest.test
from test import test_support from test import test_support
......
# expected: fail
doctests = """ doctests = """
Unpack tuple Unpack tuple
......
# expected: fail
"""Regresssion tests for urllib""" """Regresssion tests for urllib"""
import urllib import urllib
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
......
# expected: fail
# Check every path through every method of UserDict # Check every path through every method of UserDict
from test import test_support, mapping_tests from test import test_support, mapping_tests
......
# expected: fail
# Check every path through every method of UserList # Check every path through every method of UserList
from UserList import UserList from UserList import UserList
......
# expected: fail
# UserString is a wrapper around the native builtin string type. # UserString is a wrapper around the native builtin string type.
# UserString instances should behave similar to builtin string objects. # UserString instances should behave similar to builtin string objects.
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
import io import io
......
# expected: fail
import gc import gc
import sys import sys
import unittest import unittest
......
# expected: fail
import unittest import unittest
from test import test_support from test import test_support
from weakref import proxy, ref, WeakSet from weakref import proxy, ref, WeakSet
......
# expected: fail
"""Unit tests for the with statement specified in PEP 343.""" """Unit tests for the with statement specified in PEP 343."""
......
# expected: fail
from __future__ import nested_scopes # Backward compat for 2.1 from __future__ import nested_scopes # Backward compat for 2.1
from unittest import TestCase from unittest import TestCase
from wsgiref.util import setup_testing_defaults from wsgiref.util import setup_testing_defaults
......
# expected: fail
# Python test set -- built-in functions # Python test set -- built-in functions
import test.test_support, unittest import test.test_support, unittest
......
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