File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
source_py2/test_python_toolbox Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 11# Copyright 2009-2015 Ram Rachum.
22# This program is distributed under the MIT license.
33
4- import queue as queue_module
4+ import Queue as queue_module
55
66from python_toolbox.context_management import (as_reentrant, ContextManager,
77 ContextManagerType)
Original file line number Diff line number Diff line change @@ -115,15 +115,15 @@ def test_parent_folder():
115115 assert str(tf2).startswith(str(tf1))
116116
117117def test_chmod():
118- with ( create_temp_folder(chmod=0o777) as liberal_temp_folder,
119- create_temp_folder(chmod=0o000) as conservative_temp_folder) :
120- # Doing a very weak test of chmod because not everything is supported
121- # on Windows.
122- assert (liberal_temp_folder.stat().st_mode & 0o777) > \
123- (conservative_temp_folder.stat().st_mode & 0o777)
124-
125- # Making `conservative_temp_folder` writeable again so it could be
126- # deleted in cleanup:
127- conservative_temp_folder.chmod(0o777)
118+ with create_temp_folder(chmod=0o777) as liberal_temp_folder:
119+ with create_temp_folder(chmod=0o000) as conservative_temp_folder:
120+ # Doing a very weak test of chmod because not everything is
121+ # supported on Windows.
122+ assert (liberal_temp_folder.stat().st_mode & 0o777) > \
123+ (conservative_temp_folder.stat().st_mode & 0o777)
124+
125+ # Making `conservative_temp_folder` writeable again so it could be
126+ # deleted in cleanup:
127+ conservative_temp_folder.chmod(0o777)
128128
129129
You can’t perform that action at this time.
0 commit comments