Skip to content

Commit

Permalink
Merge pull request #7 from kolomenkin/r_windows
Browse files Browse the repository at this point in the history
use cross platform temp folder detection
  • Loading branch information
siddhantgoel committed May 19, 2018
2 parents 24d6d94 + dddef44 commit 57abec0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_targets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os.path
import tempfile
from unittest import TestCase

from streaming_form_data.targets import ValueTarget, FileTarget
Expand All @@ -21,7 +22,7 @@ def test_basic(self):

class FileTargetTestCase(TestCase):
def test_basic(self):
filename = '/tmp/file.txt'
filename = os.path.join(tempfile.gettempdir(), 'file.txt')

target = FileTarget(filename)

Expand Down

0 comments on commit 57abec0

Please sign in to comment.