Skip to content

Commit

Permalink
Pylint fix
Browse files Browse the repository at this point in the history
Fixes pylint error around use of open() for files
  • Loading branch information
ItIsJordan committed Apr 17, 2024
1 parent c579a96 commit 60bcbe0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def test_create_files(self):
testdir = tmp_directory_name()
testpath = "./testfile.txt"

# Create test file and set cleanup
f = open(testpath, "a")
f.close()
with open(testpath, "a", encoding="utf-8") as f:
f.close()

self.addCleanup(os.remove, testpath)

# Create submission and set values for testing
Expand Down

0 comments on commit 60bcbe0

Please sign in to comment.