test_cloudflare_mount_rejects_read_only_extra_path_grant fails on Windows: expected path is hard-coded POSIX

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

tests/extensions/sandbox/test_cloudflare.py を読み、test_cloudflare_mount_rejects_read_only_extra_path_grant を調べてください。期待するパスは str(Path('/tmp/protected/data')) で作成し、アサーションがプラットフォームのネイティブな区切り文字を使うようにします。その後、このテストとテストファイル全体を実行してください。Windows で両方が成功したら完了です。

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

説明

tests/extensions/sandbox/test_cloudflare.py::test_cloudflare_mount_rejects_read_only_extra_path_grant fails on Windows on current main:

- failed to write archive for path: /tmp/protected/data
+ failed to write archive for path: \tmp\protected\data

Cause. For a host-backed root, _raise_if_read_only_grant in sandbox/workspace_paths.py keeps the native Path, so the message and context['path'] use the platform separator. The test compares against a hard-coded POSIX string.

Proposed fix (test only). Build the expected value with str(Path('/tmp/protected/data')). The whole file then passes (96). Branch: https://github.com/Mahdi-Hasan/openai-agents-python/tree/fix/cloudflare-test-windows-paths

主要言語
Python
スター
30.5k
フォーク
5k
平均マージ
19時間 30分
マージ済み PR(30日)
129

環境構築

はじめの一歩

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

openai/openai-agents-python のほかの issue

openai/openai-agents-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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