Lines Matching defs:test
18 import test.support
19 from test.support import import_helper
20 from test.support import warnings_helper
21 import test.string_tests
22 import test.list_tests
23 from test.support import bigaddrspacetest, MAX_Py_ssize_t
24 from test.support.script_helper import assert_python_failure
465 # test non-ASCII string
555 # Stress test with empty separator
955 test.support.check_free_after_iterating(self, iter, self.type2test)
956 test.support.check_free_after_iterating(self, reversed, self.type2test)
981 # test delete as a keyword argument
1078 # test formatters
1122 # test minimum and maximum integer values
1181 # fallback is handled specially, so test separately.
1190 # str did), so test them separately.
1262 # Text mode is ambiguous; don't test
1273 b = bytearray(b'hello1') # test even number of items
1304 # test that it's indeed a copy and not a reference
1449 # This test verifies that we correctly handle assigning self
1561 # test values outside of the ascii range: (0, 127)
1575 # test for issue #6846
1669 @test.support.cpython_only
1710 test_exhausted_iterator = test.list_tests.CommonTest.test_exhausted_iterator
1803 @test.support.requires_docstrings
1850 "BytesWarning is needed for this test: use -bb option")
1921 class FixedStringTest(test.string_tests.BaseTest):
1945 # test comparison operators with subclass instances
1954 # test concat of subclass instances
1959 # test repeat