Skip to content

Commit 17bbb17

Browse files
committed
fixed RUF046
Signed-off-by: Alexander Piskun <[email protected]>
1 parent 8277369 commit 17bbb17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/actual_tests/files_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ async def test_file_download2file_async(anc_any, rand_bytes):
224224
def test_file_download2stream_invalid_type(nc_any):
225225
for test_type in (
226226
b"13",
227-
int(55),
227+
55,
228228
):
229229
with pytest.raises(TypeError):
230230
nc_any.files.download2stream("xxx", test_type)
@@ -234,7 +234,7 @@ def test_file_download2stream_invalid_type(nc_any):
234234
async def test_file_download2stream_invalid_type_async(anc_any):
235235
for test_type in (
236236
b"13",
237-
int(55),
237+
55,
238238
):
239239
with pytest.raises(TypeError):
240240
await anc_any.files.download2stream("xxx", test_type)
@@ -243,7 +243,7 @@ async def test_file_download2stream_invalid_type_async(anc_any):
243243
def test_file_upload_stream_invalid_type(nc_any):
244244
for test_type in (
245245
b"13",
246-
int(55),
246+
55,
247247
):
248248
with pytest.raises(TypeError):
249249
nc_any.files.upload_stream("xxx", test_type)
@@ -253,7 +253,7 @@ def test_file_upload_stream_invalid_type(nc_any):
253253
async def test_file_upload_stream_invalid_type_async(anc_any):
254254
for test_type in (
255255
b"13",
256-
int(55),
256+
55,
257257
):
258258
with pytest.raises(TypeError):
259259
await anc_any.files.upload_stream("xxx", test_type)

0 commit comments

Comments
 (0)