From 44518bee3d59c87855340fce698db373315c47e0 Mon Sep 17 00:00:00 2001 From: Baudouin Raoult Date: Sun, 29 Aug 2021 22:59:06 +0100 Subject: [PATCH] Better memfs --- memfs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/memfs.py b/memfs.py index eb3f388d5..ea4800abb 100755 --- a/memfs.py +++ b/memfs.py @@ -117,6 +117,8 @@ for directory in dirs: if buffer is not None: buffer.close() +assert fcount <= MAX_FCOUNT, fcount + while fcount < MAX_FCOUNT: opath = get_outfile_name(output_file_base, fcount) print("MEMFS: Generating output:", opath, "(empty)")