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