Skip to content

Commit

Permalink
Add underscore to temp dir name to make readable
Browse files Browse the repository at this point in the history
tempfile creates files and folders with a random name, but adds the
prefix directly before it, so this makes it more readable by separating
those parts.
  • Loading branch information
tofu-rocketry committed Oct 9, 2023
1 parent bc56fd3 commit 1defe69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_message_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TestMessageDirectory(unittest.TestCase):

def setUp(self):
"""Create a MessageDirectory class on top of a temporary directory."""
self.tmp_dir = tempfile.mkdtemp(prefix='message_directory')
self.tmp_dir = tempfile.mkdtemp(prefix='message_directory_')
self.message_directory = MessageDirectory(self.tmp_dir)

def test_add_and_get(self):
Expand Down

0 comments on commit 1defe69

Please sign in to comment.