Skip to content

Commit 55d0f33

Browse files
author
Pamparampam
committed
fixed slow tests failing
1 parent 1855203 commit 55d0f33

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "zipFly64"
9-
version = "1.3.1"
9+
version = "1.3.0"
1010
description = "Stream zip64 archives on the fly."
1111
readme = "README.md"
1212
authors = [{ name = "Pamparampampam" }]

src/zipFly/BaseFile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ def __init__(self, name: str, compression_method: int = consts.NO_COMPRESSION):
2020
self._name = name
2121

2222
def __str__(self):
23-
return f"BaseFile[name={self.name}]"
23+
return f"BaseFile[name={self._name}]"
2424

2525
def __repr__(self):
26-
return f"BaseFile({self.name})"
26+
return f"BaseFile({self._name})"
2727

2828
def _check_if_used(self):
2929
if self.__used:

tests/test_zipfly_4GB.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ def test_4GB_GenFile_COMPRESSION_DEFLATE(tmp_path):
1717
name="zeros.txt",
1818
generator=sized_zeros_generator(gb4plus),
1919
modification_time=time.time(),
20-
size=gb4plus,
2120
compression_method=consts.COMPRESSION_DEFLATE,
2221
)
2322
files = [file1]
@@ -43,7 +42,6 @@ async def test_4GB_GenFile_COMPRESSION_DEFLATE_async(tmp_path):
4342
name="zeros.txt",
4443
generator=sized_zeros_generator_async(gb4plus),
4544
modification_time=time.time(),
46-
size=gb4plus,
4745
compression_method=consts.COMPRESSION_DEFLATE,
4846
)
4947
files = [file1]
@@ -69,7 +67,6 @@ def test_4GB_GenFile_NO_COMPRESSION(tmp_path):
6967
generator=sized_zeros_generator(gb4plus),
7068
modification_time=time.time(),
7169
size=gb4plus,
72-
compression_method=consts.NO_COMPRESSION,
7370
)
7471
files = [file1]
7572
zip_fly = ZipFly(files)
@@ -95,7 +92,6 @@ async def test_4GB_GenFile_NO_COMPRESSION_async(tmp_path):
9592
generator=sized_zeros_generator_async(gb4plus),
9693
modification_time=time.time(),
9794
size=gb4plus,
98-
compression_method=consts.NO_COMPRESSION,
9995
)
10096
files = [file1]
10197
zip_fly = ZipFly(files)

0 commit comments

Comments
 (0)