Skip to content

Commit c343d73

Browse files
committed
Lint
1 parent 8464363 commit c343d73

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/python-sdk/tests/async/sandbox_async/files/test_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async def test_get_info_of_file(async_sandbox: AsyncSandbox):
2626
async def test_get_info_of_nonexistent_file(async_sandbox: AsyncSandbox):
2727
filename = "test_does_not_exist.txt"
2828

29-
with pytest.raises(NotFoundException) as exc_info:
29+
with pytest.raises(NotFoundException):
3030
await async_sandbox.files.get_info(filename)
3131

3232

@@ -53,7 +53,7 @@ async def test_get_info_of_directory(async_sandbox: AsyncSandbox):
5353
async def test_get_info_of_nonexistent_directory(async_sandbox: AsyncSandbox):
5454
dirname = "test_does_not_exist_dir"
5555

56-
with pytest.raises(NotFoundException) as exc_info:
56+
with pytest.raises(NotFoundException):
5757
await async_sandbox.files.get_info(dirname)
5858

5959

@@ -70,7 +70,7 @@ async def test_file_symlink(async_sandbox: AsyncSandbox):
7070

7171
file = await async_sandbox.files.get_info(symlink_path)
7272

73-
pwd = await async_sandbox.commands.run(f"pwd")
73+
pwd = await async_sandbox.commands.run("pwd")
7474
assert file.type == FileType.FILE
7575
assert file.symlink_target == f"{pwd.stdout.strip()}/{file_path}"
7676

packages/python-sdk/tests/sync/sandbox_sync/files/test_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_get_info_of_file(sandbox: Sandbox):
2424
def test_get_info_of_nonexistent_file(sandbox: Sandbox):
2525
filename = "test_does_not_exist.txt"
2626

27-
with pytest.raises(NotFoundException) as exc_info:
27+
with pytest.raises(NotFoundException):
2828
sandbox.files.get_info(filename)
2929

3030

@@ -49,7 +49,7 @@ def test_get_info_of_directory(sandbox: Sandbox):
4949
def test_get_info_of_nonexistent_directory(sandbox: Sandbox):
5050
dirname = "test_does_not_exist_dir"
5151

52-
with pytest.raises(NotFoundException) as exc_info:
52+
with pytest.raises(NotFoundException):
5353
sandbox.files.get_info(dirname)
5454

5555

@@ -66,7 +66,7 @@ async def test_file_symlink(sandbox: Sandbox):
6666

6767
file = sandbox.files.get_info(test_dir)
6868

69-
pwd = sandbox.commands.run(f"pwd", cwd=test_dir)
69+
pwd = sandbox.commands.run("pwd", cwd=test_dir)
7070
assert file.type == FileType.FILE
7171
assert file.symlink_target == f"{pwd.stdout.strip()}/{file_path}"
7272

0 commit comments

Comments
 (0)