Mercurial > cpython-lru_cache-weakref
annotate Lib/test/encoded_modules/__init__.py @ 78069:a8aa77458e12 3.2
Add c_size_t and c_ssize_t to the ctypes summary table.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Thu, 12 Jul 2012 20:31:50 +0200 |
| parents | 9712586fa42f |
| children |
| rev | line source |
|---|---|
|
65368
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
1 # -*- encoding: utf-8 -*- |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
2 |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
3 # This is a package that contains a number of modules that are used to |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
4 # test import from the source files that have different encodings. |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
5 # This file (the __init__ module of the package), is encoded in utf-8 |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
6 # and contains a list of strings from various unicode planes that are |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
7 # encoded differently to compare them to the same strings encoded |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
8 # differently in submodules. The following list, test_strings, |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
9 # contains a list of tuples. The first element of each tuple is the |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
10 # suffix that should be prepended with 'module_' to arrive at the |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
11 # encoded submodule name, the second item is the encoding and the last |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
12 # is the test string. The same string is assigned to the variable |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
13 # named 'test' inside the submodule. If the decoding of modules works |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
14 # correctly, from module_xyz import test should result in the same |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
15 # string as listed below in the 'xyz' entry. |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
16 |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
17 # module, encoding, test string |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
18 test_strings = ( |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
19 ('iso_8859_1', 'iso-8859-1', "Les hommes ont oublié cette vérité, " |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
20 "dit le renard. Mais tu ne dois pas l'oublier. Tu deviens " |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
21 "responsable pour toujours de ce que tu as apprivoisé."), |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
22 ('koi8_r', 'koi8-r', "Познание бесконечности требует бесконечного времени.") |
|
9712586fa42f
Issue #9308: Removed redundant coding cookies. Added tests for
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
diff
changeset
|
23 ) |
