Skip to content

Commit d6f610a

Browse files
committed
use variable for file removal
1 parent 7802136 commit d6f610a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/communityid_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def _check_output_community_id_pcapfilter(self, args):
412412
with open(outfilename, "rb") as f:
413413
bytes = f.read()
414414
checksum = hashlib.sha256(bytes).hexdigest()
415-
os.remove("output.pcap")
415+
os.remove(outfilename)
416416
return checksum
417417
except subprocess.CalledProcessError as err:
418418
if err.output.find(b'This needs the dpkt Python module') < 0:

0 commit comments

Comments
 (0)