Skip to content

Commit

Permalink
use variable for file removal
Browse files Browse the repository at this point in the history
  • Loading branch information
philhagen committed Nov 28, 2023
1 parent 7802136 commit d6f610a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/communityid_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def _check_output_community_id_pcapfilter(self, args):
with open(outfilename, "rb") as f:
bytes = f.read()
checksum = hashlib.sha256(bytes).hexdigest()
os.remove("output.pcap")
os.remove(outfilename)
return checksum
except subprocess.CalledProcessError as err:
if err.output.find(b'This needs the dpkt Python module') < 0:
Expand Down

0 comments on commit d6f610a

Please sign in to comment.