Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
0e597772
Commit
0e597772
authored
Nov 04, 2015
by
MinchinWeb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create tempfile in a cross-platform way
parent
c9c36d67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test/test_revert_command.py
test/test_revert_command.py
+3
-2
No files found.
test/test_revert_command.py
View file @
0e597772
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
os
import
os
import
tempfile
import
unittest
import
unittest
from
datetime
import
date
from
datetime
import
date
...
@@ -47,8 +48,8 @@ class RevertCommandTest(CommandTest):
...
@@ -47,8 +48,8 @@ class RevertCommandTest(CommandTest):
self
.
tmp_name
=
str
(
uuid4
().
hex
.
upper
()[
0
:
6
])
self
.
tmp_name
=
str
(
uuid4
().
hex
.
upper
()[
0
:
6
])
archive_filename
=
'/tmp/'
+
self
.
tmp_name
+
'_archive'
archive_filename
=
tempfile
.
gettempdir
()
+
os
.
sep
+
self
.
tmp_name
+
'_archive'
todo_filename
=
'/tmp/'
+
self
.
tmp_name
+
'_todo'
todo_filename
=
tempfile
.
gettempdir
()
+
os
.
sep
+
self
.
tmp_name
+
'_todo'
config
(
p_overrides
=
{(
'topydo'
,
'archive_filename'
):
archive_filename
,
config
(
p_overrides
=
{(
'topydo'
,
'archive_filename'
):
archive_filename
,
(
'topydo'
,
'filename'
):
todo_filename
,
(
'topydo'
,
'backup_count'
):
'5'
})
(
'topydo'
,
'filename'
):
todo_filename
,
(
'topydo'
,
'backup_count'
):
'5'
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment