Skip to content

Commit 48b098f

Browse files
committed
7%
1 parent 85b652b commit 48b098f

File tree

1 file changed

+37
-5
lines changed

1 file changed

+37
-5
lines changed

library/doctest.po

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgstr ""
66
"Project-Id-Version: Python 3\n"
77
"Report-Msgid-Bugs-To: \n"
88
"POT-Creation-Date: 2020-07-20 10:51+0200\n"
9-
"PO-Revision-Date: 2021-05-16 13:24-0400\n"
9+
"PO-Revision-Date: 2021-05-18 06:17-0400\n"
1010
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
1111
"Language: fr\n"
1212
"MIME-Version: 1.0\n"
@@ -98,26 +98,37 @@ msgid ""
9898
"libraries. Especially useful examples can be found in the standard test "
9999
"file :file:`Lib/test/test_doctest.py`."
100100
msgstr ""
101+
"C'est tout ce que vous avez besoin de savoir pour pouvoir commencer une "
102+
"utilisation productive de :mod:`doctest` ! Allez-y. Les sections suivantes "
103+
"donnent tous les détails. Notez qu'il y a plusieurs exemples de *doctests* "
104+
"dans la suite de tests de la bibliothèque standard de Python et dans les "
105+
"autres bibliothèques. Des exemples particulièrement utiles se situent dans "
106+
"le fichier de test standard :file:`Lib/test/test_doctest.py`."
101107

102108
#: library/doctest.rst:143
103109
msgid "Simple Usage: Checking Examples in Docstrings"
104-
msgstr ""
110+
msgstr "Utilisation simple: vérifier des exemples en Docstrings"
105111

106112
#: library/doctest.rst:145
107113
msgid ""
108114
"The simplest way to start using doctest (but not necessarily the way you'll "
109115
"continue to do it) is to end each module :mod:`M` with::"
110116
msgstr ""
117+
"La façon la plus simple de commencer à utiliser doctest ( mais pas "
118+
"nécessairement la façon avec laquelle vous continuerez ) est de terminer "
119+
"chaque module :mod:`M` avec::"
111120

112121
#: library/doctest.rst:152
113122
msgid ":mod:`doctest` then examines docstrings in module :mod:`M`."
114-
msgstr ""
123+
msgstr ":mod:`doctest`puis examinez les docstrings dans le module :mod:`M`."
115124

116125
#: library/doctest.rst:154
117126
msgid ""
118127
"Running the module as a script causes the examples in the docstrings to get "
119128
"executed and verified::"
120129
msgstr ""
130+
"Exécuter le module comme un script a comme conséquence d'exécuter et de "
131+
"vérifier les exemples dans les docstrings::"
121132

122133
#: library/doctest.rst:159
123134
msgid ""
@@ -126,16 +137,23 @@ msgid ""
126137
"and the final line of output is ``***Test Failed*** N failures.``, where *N* "
127138
"is the number of examples that failed."
128139
msgstr ""
140+
"Ceci n'affichera rien à moins qu'un exemple échoue; le cas échéant, les "
141+
"exemples défaillants et les causes de leur(s) échec(s) sont afficher sur "
142+
"stdout, et la ligne finale de la sortie est ``***Test Failed*** N failures."
143+
"``, où *N* est le nombre d'exemples défaillants."
129144

130145
#: library/doctest.rst:164
146+
#, fuzzy
131147
msgid "Run it with the ``-v`` switch instead::"
132-
msgstr ""
148+
msgstr "À la place, exécutez-la en activant ``-v`` ::"
133149

134150
#: library/doctest.rst:168
135151
msgid ""
136152
"and a detailed report of all examples tried is printed to standard output, "
137153
"along with assorted summaries at the end."
138154
msgstr ""
155+
"puis un rapport détaillé de tous les exemples faisant partie de l'essai est "
156+
"affiché sur standard output, accompagné à la fin de leurs résumés."
139157

140158
#: library/doctest.rst:171
141159
msgid ""
@@ -144,30 +162,44 @@ msgid ""
144162
"``sys.argv`` is not examined by :func:`testmod` (so passing ``-v`` or not "
145163
"has no effect)."
146164
msgstr ""
165+
"Vous activez le mode verbeux en passant ``verbose=True`` à :func:`testmod`, "
166+
"ou le désactiver en lui passant``verbose=False``. Dans ces deux cas, ``sys."
167+
"argv`` n'est pas inspecté par :func:`testmod` (ainsi, lui passer ``-v`` ou "
168+
"pas n'a aucun effet)."
147169

148170
#: library/doctest.rst:176
149171
msgid ""
150172
"There is also a command line shortcut for running :func:`testmod`. You can "
151173
"instruct the Python interpreter to run the doctest module directly from the "
152174
"standard library and pass the module name(s) on the command line::"
153175
msgstr ""
176+
"Il y a un raccourci pour exécuter :func:`testmod` à partir de la ligne de "
177+
"commande. Vous demandez à l'interprète Python d'exécuter le module doctest "
178+
"directement à partir de la bibliothèque standard afin de passer le(s) nom(s) "
179+
"de(s) module(s) à partir de la ligne de commande ainsi::"
154180

155181
#: library/doctest.rst:182
156182
msgid ""
157183
"This will import :file:`example.py` as a standalone module and run :func:"
158184
"`testmod` on it. Note that this may not work correctly if the file is part "
159185
"of a package and imports other submodules from that package."
160186
msgstr ""
187+
"Ceci importera :file: `example.py` comme un module autonome et exécutera :"
188+
"func:`testmod` sur celui-ci. Prendre note que ceci peut ne pas fonctionner "
189+
"si le fichier fait partie d'un paquet et importe d'autres sous-modules de ce "
190+
"paquet."
161191

162192
#: library/doctest.rst:186
163193
msgid ""
164194
"For more information on :func:`testmod`, see section :ref:`doctest-basic-"
165195
"api`."
166196
msgstr ""
197+
"Pour plus d'informations sur :func:`testmod`, consultez la section :ref:"
198+
"`doctest-basic-api`."
167199

168200
#: library/doctest.rst:192
169201
msgid "Simple Usage: Checking Examples in a Text File"
170-
msgstr ""
202+
msgstr "Utilisation simple: vérifier des exemples dans un fichier texte"
171203

172204
#: library/doctest.rst:194
173205
msgid ""

0 commit comments

Comments
 (0)