Skip to content

Commit

Permalink
Use python_workers compat flag instead of experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Mar 4, 2024
1 parent b0bd413 commit b3aa905
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fixtures/python-worker/wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "dep-python-worker"
main = "src/index.py"
compatibility_flags = ["experimental"]
compatibility_flags = ["python_workers"]
compatibility_date = "2024-01-29"
4 changes: 2 additions & 2 deletions packages/miniflare/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ test("Miniflare: service binding to current worker", async (t) => {
if (pathname === "/callback") return new Response("callback");
const response = await env.SELF.fetch("http://placeholder/callback");
const text = await response.text();
return new Response("body:" + text);
return new Response("body:" + text);
}
}`,
});
Expand Down Expand Up @@ -822,7 +822,7 @@ test("Miniflare: python modules", async (t) => {
contents: `def add(a, b):\n return a + b`,
},
],
compatibilityFlags: ["experimental"],
compatibilityFlags: ["python_workers"],
});
t.teardown(() => mf.dispose());
const res = await mf.dispatchFetch("http://localhost");
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/e2e/dev.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ describe("basic dev python tests", () => {
name = "${workerName}"
main = "index.py"
compatibility_date = "2023-01-01"
compatibility_flags = ["experimental"]
compatibility_flags = ["python_workers"]
`,
"index.py": dedent`
from js import Response
Expand Down

0 comments on commit b3aa905

Please sign in to comment.