per page, with , order by , clip by
Results of 1 - 10 of about 21 for tests (0.007 sec.)
unittest --- ユニットテストフレームワーク 14968
unittest --- ユニットテストフレームワーク ソースコード: Lib/unittest/__init__.py (すでにテストの基本概念について詳しいようでしたら、この部分をとばして アサートメソッド一覧 に進むと良いでしょう。) unittest ユニットテストフレームワークは、もと ... 得られることを確認します。 unittest は、新しいテストケースを作成するための基底クラス TestCase を提供します。 テストスイート (test suite) テストスイート ( test suite ) は、テストケース、テストスイート、またはその両方の集まりです。 まとめて実行するテストを ... とんどの利用者の要求を満たせることを示します。 以下は、三つの文字列メソッドをテストするスクリプトです: import unittest class TestStringMethods ( unittest . TestCase ): def test_upper ( self ): self . assertEqual ( 'foo' . upper (), 'FOO' ) def test_isup ... のスクリプトは以下のような結果を出力します: ... ---------------------------------------------------------------------- Ran 3 tests in 0.000 s OK -v オプションをテストスクリプトに渡すことで unittest.main() はより冗長になり、以下のような出力をします: test ...
https://man.mtool.work/python/3.14/library/unittest.html
Pythonモジュール索引 10621
Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i ... 非推奨: Removed in 3.13. tempfile Generate temporary files and directories. termios POSIX style tty control. test Regression tests package containing the testing suite for Python. test.regrtest Drives the regression test suite. test.support Support for ... Python's regression test suite. test.support.bytecode_helper Support tools for testing correct bytecode generation. test.support.import_helper Suppo ... rt for import tests. test.support.os_helper Support for os tests. test.support.script_helper Support for Python's script execution tests. test ...
https://man.mtool.work/python/3.14/py-modindex.html
test --- Python の回帰テストパッケージ 9657
test --- Python の回帰テストパッケージ 注釈 test パッケージは Python 内部での使用のみを目的としています。 このドキュメントは Python のコア開発者向けに用意されています。 ここで説明するコードは Python のリリース間で予告なく変更または削除される ... test . TestCase ): # setUp() と tearDown() は必要な場合だけ使う def setUp ( self ): ... code to execute in preparation for tests ... def tearDown ( self ): ... code to execute to clean up after tests ... def test_feature_one ( self ): # 機能その1をテス ... が自動的に実行されます。 名前が test_ で始まるモジュールとパッケージを探し、それぞれをインポートして unittest.TestLoader.loadTestsFromModule() でテストを読み込みます。 読み込むテストをモジュールやパッケージでカスタマイズする方法については、 load_tests プ ... # この時点では cm.unraisable 属性は存在しない # (循環参照を断ち切るため) Added in version 3.8. test.support. load_package_tests ( pkg_dir , loader , standard_tests , pattern ) テストパッケージで使うための、 unittest の load_tests プロトコルの汎用実装 ...
https://man.mtool.work/python/3.14/library/test.html
GDB による C API 拡張と CPython 内部のデバッグ 9539
GDB による C API 拡張と CPython 内部のデバッグ このドキュメントでは、Python の GDB 拡張 python-gdb.py を GDB デバッガと組み合わせて、CPython 拡張や CPython インタープリタ自体をデバッグする方法を説明します。 クラッシュやデッドロックなどの低レ ... 1548, in <module> (), throwflag=0) at Python/ceval.c:2665 2665 x = call_function(&sp, oparg); (gdb) py-list 1543 # Run the tests in a context manager that temporary changes the CWD to a 1544 # temporary and writable directory. If it's not possible to ... 728528)) self._acquire_restore(saved_state) #12 Frame 0x7fffb8001a10, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 348, in f () cond.wait() #16 Frame 0x7fffb8001c40, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, ... 992272)) self._acquire_restore(saved_state) #12 Frame 0x7fffac001c90, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 348, in f () cond.wait() #16 Frame 0x7fffac0011c0, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, ...
https://man.mtool.work/python/3.14/howto/gdb_helpers.html
Python 3.13 で削除予定 8778
Python 3.13 で削除予定 モジュール( PEP 594 を参照): aifc audioop cgi cgitb chunk crypt imghdr mailcap msilib nis nntplib ossaudiodev pipes sndhdr spwd sunau telnetlib uu xdrlib その他のモジュール: lib2to3 と 2to3 プログラム ( gh-84540 ) API ... gh-89519 ) 他のマニュアルの関連ページ DuckDB Debugging Django 1.3 Django overview PHP strings.installation DuckDB Writing Tests DuckDB sqllogictest Introduction ...
https://man.mtool.work/python/3.14/deprecations/pending-removal-in-3.13.html
doctest --- 対話型の Python の例をテストする 8778
doctest --- 対話型の Python の例をテストする ソースコード: Lib/doctest.py doctest モジュールは Python の対話セッションに見えるテキストを探し、そのセッションを実行して記載どおりに動作するか検証します。 主な使い方は次のとおりです。 モジュール ... rying: factorial(1e100) Expecting: Traceback (most recent call last): ... OverflowError: n too large ok 2 items passed all tests: 1 test in __main__ 6 tests in __main__.factorial 7 tests in 2 items. 7 passed. Test passed. $ doctest を役立てるには、これ ... のテストスイートを作成するための関数を 2 つ提供します。 unittest のテストディスカバリと統合するには、テストモジュールに load_tests 関数を含めます。 import unittest import doctest import my_module_with_doctests def load_tests ( loader , tests , ignore ): ... tests . addTests ( doctest . DocTestSuite ( my_module_with_doctests )) return tests doctest の入ったテキストファイルやモジュール ...
https://man.mtool.work/python/3.14/library/doctest.html
7. iOS で Python を使う 8236
7. iOS で Python を使う 著者 : Russell Keith-Magee (2024-03) iOS における Pythonは、デスクトッププラットフォームにおける Python とは異なります。 デスクトッププラットフォームでは、 Python は一般的にコンピューターのどのユーザーでも使えるシステ ... ります。 7.2.3. Python パッケージのテスト The CPython source tree contains a testbed project that is used to run the CPython test suite on the iOS simulator. This testbed can also be used as a testbed project for running your Python library's test suite ... で、 app-testbed フォルダを使ってアプリのテストスイートを実行できます。 例えば、テストスイートのエントリーポイントが module1.tests であれば、次のコマンドを実行できます: $ python app-testbed run -- module1.tests これは、デスクトップ用の Python ビルドで p ... ython -m module1.tests を実行することに相当します。 -- の後にある引数は、デスクトップマシンで python -m に渡す引数と同じようにテストベッドに渡され ...
https://man.mtool.work/python/3.14/using/ios.html
What's New in Python 2.4 8135
What's New in Python 2.4 著者 : A.M. Kuchling この文書は 2005 年 3 月 30 日にリリースされた Python 2.4.1 の新機能について解説します。 Python 2.4 は、真ん中サイズ、のリリースです。急進的だった Python 2.2 ほどには多くの変更をしていませんが、保 ... ): """>>> f(2,2) 4 >>> f(3,2) 6 """ return x * y finder = doctest . DocTestFinder () # DocTest インスタンスのリストを取得 tests = finder . find ( f ) 続いて、新しい DocTestRunner クラスが個々のテストを実行し、結果の要約を作成できます。 runner = docte ... st . DocTestRunner () for t in tests : tried , failed = runner . run ( t ) runner . summarize ( verbose = 1 ) 上の例はこのような出力を生成します: 1 items passe ... d all tests : 2 tests in f 2 tests in 1 items . 2 passed and 0 failed . Test passed . DocTestRunner は OutputChecker クラスのインスタン ...
https://man.mtool.work/python/3.14/whatsnew/2.4.html
開発ツール 7814
開発ツール この章で紹介されるモジュールはソフトウェアを書くことを支援します。たとえば、 pydoc モジュールはモジュールの内容からドキュメントを生成します。 doctest と unittest モジュールでは、自動的に実行して予想通りの出力が生成されるか確認する ... 失敗 サブテストを利用して繰り返しテストの区別を付ける クラスと関数 テストクラス テストのグループ化 テストのロードと起動 load_tests プロトコル クラスとモジュールのフィクスチャ setUpClass と tearDownClass setUpModule と tearDownModule シグナルハンドリング ...
https://man.mtool.work/python/3.14/library/development.html
pathlib --- オブジェクト指向のファイルシステムパス 7814
pathlib --- オブジェクト指向のファイルシステムパス Added in version 3.4. ソースコード: Lib/pathlib/ このモジュールはファイルシステムのパスを表すクラスを提供していて、様々なオペレーティングシステムについての適切な意味論をそれらのクラスに持た ... te ( ) 正規化やシンボリックリンクの解決をせずに、パスを絶対パスにします。新しいパスオブジェクトを返します: >>> p = Path ( 'tests' ) >>> p PosixPath('tests') >>> p . absolute () PosixPath('/home/antoine/pathlib/tests') Path. resolve ( strict = False ) ...
https://man.mtool.work/python/3.14/library/pathlib.html
PREV 1 2 3 NEXT