Skip to content

Commit

Permalink
Formats: Use real filename for tests
Browse files Browse the repository at this point in the history
Otherwise some formats might not be working properly.

Issue #1525

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Feb 11, 2019
1 parent 8084c6f commit 81c489c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate/formats/tests/test_formats.py
Expand Up @@ -174,7 +174,7 @@ def test_save(self, edit=False):
testdata = handle.read()

# Create test file
testfile = os.path.join(self.tempdir, 'test.{0}'.format(self.EXT))
testfile = os.path.join(self.tempdir, os.path.basename(self.FILE))

# Write test data to file
with open(testfile, 'wb') as handle:
Expand Down

0 comments on commit 81c489c

Please sign in to comment.