Results of 1 - 10 of about 11 for testmod (0.007 sec.)
- doctest --- 対話型の Python の例をテストする — Python 3.14.8 ドキュメント 12642
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » doctest --- 対話型の Python の例をテストする テーマ 自動 ライト ダーク | doctest --- 対話型の Python の例をテストする
...¶ ソースコード: Lib/doctest.py The doctest module searches for pieces of text that look like interactive Python sessions, and then executes those sessions to verify tha...or = 2 while factor <= n : result *= factor factor += 1 return result if __name__ == "__main__" : import doctest doctest . testmod () If you run example.py directly from the command line, doctest works its magic: $ python example.py $ There's no output!...すが) は、各モジュール M の最後を、以下のようにして締めくくることです: if __name__ == "__main__" : import doctest doctest . testmod () こうすると、 doctest は M 中の docstring を検査します。 モジュールをスクリプトとして実行すると、docstring 中の実行例が実... - https://man.mtool.work/python/3.14/library/doctest.html
- doctest --- 対話型の Python の例をテストする — Python 3.14.8 ドキュメント 12642
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » doctest --- 対話型の Python の例をテストする テーマ 自動 ライト ダーク | doctest --- 対話型の Python の例をテストする
...¶ ソースコード: Lib/doctest.py The doctest module searches for pieces of text that look like interactive Python sessions, and then executes those sessions to verify tha...or = 2 while factor <= n : result *= factor factor += 1 return result if __name__ == "__main__" : import doctest doctest . testmod () If you run example.py directly from the command line, doctest works its magic: $ python example.py $ There's no output!...すが) は、各モジュール M の最後を、以下のようにして締めくくることです: if __name__ == "__main__" : import doctest doctest . testmod () こうすると、 doctest は M 中の docstring を検査します。 モジュールをスクリプトとして実行すると、docstring 中の実行例が実... - https://man.mtool.work/python/3.14/library/doctest.html
- 索引 — Python 3.14.8 ドキュメント 8179
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – T t-string t-strings T_BOOL (C macro) T_BYTE (C macro) T_CHAR (C macro) T_DOUBLE (C macro) T_FLOAT (C macro) T_FMT (locale モジュール)
...r のメソッド) terminator (logging.StreamHandler の属性) termios module termname() (curses モジュール) ternaryfunc (C type) test module test (doctest.DocTestFailure の属性) (doctest.UnexpectedException の属性) test.regrtest module test.support module tes...N_UNICODE (test.support.os_helper モジュール) TestLoader (unittest のクラス) testMethodPrefix (unittest.TestLoader の属性) testmod() (doctest モジュール) testNamePatterns (unittest.TestLoader の属性) TestResult (unittest のクラス) TestResults (doctest の... - https://man.mtool.work/python/3.14/genindex-T.html
- 10. Brief tour of the standard library — Python 3.14.8 ドキュメント 8179
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf
...術平均を計算する。 >>> print(average([20, 30, 70])) 40.0 """ return sum ( values ) / len ( values ) import doctest doctest . testmod () # docstring に埋め込まれたテストを自動的に評価 unittest モジュールは doctest モジュールほど気楽に使えるものではありませ... - https://man.mtool.work/python/3.14/tutorial/stdlib.html
- What's New In Python 3.1 — Python 3.14.8 ドキュメント 8179
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.1 テーマ 自動 ライト ダーク | What's New In Python 3.1 ¶ 著者 : Raymond Hettinger This article explains the new fea
...ithms. >>> e() 2.7182818284590451 ''' return sum ( 1 / math . factorial ( x ) for x in reversed ( range ( 30 ))) doctest . testmod () ********************************************************************** Failed example : e () Expected : 2.7182818284590... - https://man.mtool.work/python/3.14/whatsnew/3.1.html
- 索引 — Python 3.14.8 ドキュメント 8179
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – T t-string t-strings T_BOOL (C macro) T_BYTE (C macro) T_CHAR (C macro) T_DOUBLE (C macro) T_FLOAT (C macro) T_FMT (locale モジュール)
...r のメソッド) terminator (logging.StreamHandler の属性) termios module termname() (curses モジュール) ternaryfunc (C type) test module test (doctest.DocTestFailure の属性) (doctest.UnexpectedException の属性) test.regrtest module test.support module tes...N_UNICODE (test.support.os_helper モジュール) TestLoader (unittest のクラス) testMethodPrefix (unittest.TestLoader の属性) testmod() (doctest モジュール) testNamePatterns (unittest.TestLoader の属性) TestResult (unittest のクラス) TestResults (doctest の... - https://man.mtool.work/python/3.14/genindex-T.html
- 10. Brief tour of the standard library — Python 3.14.8 ドキュメント 8179
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf
...術平均を計算する。 >>> print(average([20, 30, 70])) 40.0 """ return sum ( values ) / len ( values ) import doctest doctest . testmod () # docstring に埋め込まれたテストを自動的に評価 unittest モジュールは doctest モジュールほど気楽に使えるものではありませ... - https://man.mtool.work/python/3.14/tutorial/stdlib.html
- What's New In Python 3.1 — Python 3.14.8 ドキュメント 8179
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.1 テーマ 自動 ライト ダーク | What's New In Python 3.1 ¶ 著者 : Raymond Hettinger This article explains the new fea
...ithms. >>> e() 2.7182818284590451 ''' return sum ( 1 / math . factorial ( x ) for x in reversed ( range ( 30 ))) doctest . testmod () ********************************************************************** Failed example : e () Expected : 2.7182818284590... - https://man.mtool.work/python/3.14/whatsnew/3.1.html
- What's New in Python 2.4 — Python 3.14.8 ドキュメント 7841
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.4 テーマ 自動 ライト ダーク | What's New in Python 2.4 ¶ 著者 : A.M. Kuchling この文書は 2005 年 3 月 30 日にリリー
...m Peters のおかげにより、 doctest モジュールに注目に値するリファクタリングが入りました。テストはこれまで通り単純に doctest.testmod() を実行するすることで行えますが、リファクタリングはモジュールの操作をカスタマイズする色々な手段を提供してくれます。 The n... - https://man.mtool.work/python/3.14/whatsnew/2.4.html
- What's New in Python 2.4 — Python 3.14.8 ドキュメント 7841
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.4 テーマ 自動 ライト ダーク | What's New in Python 2.4 ¶ 著者 : A.M. Kuchling この文書は 2005 年 3 月 30 日にリリー
...m Peters のおかげにより、 doctest モジュールに注目に値するリファクタリングが入りました。テストはこれまで通り単純に doctest.testmod() を実行するすることで行えますが、リファクタリングはモジュールの操作をカスタマイズする色々な手段を提供してくれます。 The n... - https://man.mtool.work/python/3.14/whatsnew/2.4.html