diff options
author | Evan Shelhamer <shelhamer@imaginarynumber.net> | 2015-08-06 13:04:15 -0700 |
---|---|---|
committer | Evan Shelhamer <shelhamer@imaginarynumber.net> | 2015-08-06 13:04:15 -0700 |
commit | 1934feec285c901066ef28567ccc6a7cb5b4ce92 (patch) | |
tree | 889283967582b907b112a6f52df1dc87a372cd3c /python | |
parent | d958b5a45c95db4f4e90abda29b69d5bfed2ef07 (diff) | |
download | caffeonacl-1934feec285c901066ef28567ccc6a7cb5b4ce92.tar.gz caffeonacl-1934feec285c901066ef28567ccc6a7cb5b4ce92.tar.bz2 caffeonacl-1934feec285c901066ef28567ccc6a7cb5b4ce92.zip |
[pytest] open exception file with mode for python3
Diffstat (limited to 'python')
-rw-r--r-- | python/caffe/test/test_python_layer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/caffe/test/test_python_layer.py b/python/caffe/test/test_python_layer.py index ff070a35..a1e11bc2 100644 --- a/python/caffe/test/test_python_layer.py +++ b/python/caffe/test/test_python_layer.py @@ -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' |