Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Extension example catches its own assertions and cannot detect failed deletion

オープン 初心者向け
#180 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
python
領域
testing-qa

調査の方向性

まず examples/playwright_extensions.py:127-132 と 134-143 にある 2 つの削除検証ブロックから始め、次に examples/e2e/test_playwright.py がその例をどのように実行しているかを確認します。予期しない成功が期待される失敗として扱われないことを確認し、削除のリグレッションが検出されることを検証するために、関連する E2E テストを実行します。

索引モデルが issue の本文から書いたものです。

説明

Description

The extension example's two deletion-verification blocks catch their own AssertionError. If retrieving a deleted extension or creating a session with it unexpectedly succeeds, the code raises AssertionError, immediately catches it with except Exception, and prints that failure occurred "as expected".

Code reference

  • examples/playwright_extensions.py:127-132
  • examples/playwright_extensions.py:134-143

Reproduction

The control-flow problem can be demonstrated without Browserbase credentials:

try:
    # Simulate get_extension() unexpectedly succeeding.
    object()
    raise AssertionError("Expected to fail when retrieving deleted extension")
except Exception as exc:
    print(f"Failed as expected: {exc}")

The output claims an expected failure even though the operation succeeded and only the example's own assertion failed.

Expected behavior

Only the API operation should be inside the try, with the success assertion in else, or the code should catch the specific expected Browserbase exception. Unexpected success must fail the example/E2E test.

Actual behavior

Both negative checks are guaranteed to print an expected-failure message for either outcome, so regressions in extension deletion can pass silently.

Why it matters

examples/e2e/test_playwright.py exercises this example. False-positive cleanup checks weaken E2E coverage for deletion semantics and can mask a server or SDK regression.

主要言語
Python
スター
93
フォーク
16
平均マージ
11分
マージ済み PR(30日)
3

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

browserbase/sdk-python のほかの issue

browserbase/sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。