Skip to content

Commit

Permalink
[pytest] open exception file with mode for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
shelhamer committed Aug 6, 2015
1 parent d958b5a commit 1934fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/caffe/test/test_python_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def python_net_file():


def exception_net_file():
with tempfile.NamedTemporaryFile(delete=False) as f:
with tempfile.NamedTemporaryFile(mode='w+', delete=False) as f:
f.write("""name: 'pythonnet' force_backward: true
input: 'data' input_shape { dim: 10 dim: 9 dim: 8 }
layer { type: 'Python' name: 'layer' bottom: 'data' top: 'top'
Expand Down

0 comments on commit 1934fee

Please sign in to comment.