Skip to content

Commit 65ebbc6

Browse files
committed
fix: fix is_file call in test_scanner.py
Parentheses are missing after is_file resulting in an error with LONG_TESTS=1 pytest if the package is not already in condensed-downloads since commit f03e885 Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 6c13a9d commit 65ebbc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_scanner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,12 @@ def condensed_filepath(self, url, package_name):
194194
# Check if we've already made a condensed version of the file, if we
195195
# have, we're done.
196196
condensed_path = condensed_dir / (package_name + ".tar.gz")
197-
if condensed_path.is_file:
197+
if condensed_path.is_file():
198198
return str(condensed_path)
199199
# Download the file if we don't have a condensed version of it and we
200200
# don't have it downloaded already
201201
download_path = downloads_dir / package_name
202-
if not download_path.is_file:
202+
if not download_path.is_file():
203203
download_file(url + package_name, download_path)
204204
# Make the condensed version of the file
205205
self.make_condensed_from_download(str(download_path), str(condensed_path))

0 commit comments

Comments
 (0)