From 86db8f647de7ab23c728e2a3d25014511b894095 Mon Sep 17 00:00:00 2001 From: Nathan Wang Date: Tue, 16 Jul 2024 00:25:40 -0400 Subject: [PATCH] update to python 3.12.3 --- e2e/helpers.ts | 4 ++-- e2e/respects_permissions.spec.ts | 2 +- src/context/UserContext.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/helpers.ts b/e2e/helpers.ts index 3cfbb18b..27910d9e 100644 --- a/e2e/helpers.ts +++ b/e2e/helpers.ts @@ -42,7 +42,7 @@ export const testRunCode = async ( export const switchLang = async ( page: Page, - lang: 'Java' | 'Python 3.8.1' | 'C++' + lang: 'Java' | 'Python 3.12.3' | 'C++' ) => { await page.getByRole('button', { name: 'File' }).click(); await page.getByRole('menuitem', { name: 'Settings' }).click(); @@ -58,7 +58,7 @@ export const forEachLang = async ( await switchLang(page, 'Java'); await func(); - await switchLang(page, 'Python 3.8.1'); + await switchLang(page, 'Python 3.12.3'); await func(); await switchLang(page, 'C++'); diff --git a/e2e/respects_permissions.spec.ts b/e2e/respects_permissions.spec.ts index a88e7466..13aecd86 100644 --- a/e2e/respects_permissions.spec.ts +++ b/e2e/respects_permissions.spec.ts @@ -112,7 +112,7 @@ test.describe('Respects Permissions', () => { expect(await page.$('text="// this is a comment"')).toBeTruthy(); await page2.waitForSelector('text="// this is a comment"'); - await switchLang(page, 'Python 3.8.1'); + await switchLang(page, 'Python 3.12.3'); await page.waitForSelector('button:has-text("Run Code")'); await page2.waitForSelector('button:has-text("Run Code")'); await page2.click(`${editorClass} div:nth-child(5)`); diff --git a/src/context/UserContext.tsx b/src/context/UserContext.tsx index 822cd38d..97e0ce5e 100644 --- a/src/context/UserContext.tsx +++ b/src/context/UserContext.tsx @@ -21,7 +21,7 @@ export const LANGUAGES: { label: string; value: Language }[] = [ value: 'java', }, { - label: 'Python 3.8.1', + label: 'Python 3.12.3', value: 'py', }, ];