@@ -111,10 +111,11 @@ def load_ironpython_test(*args):
111111class IronPythonTestCase (unittest .TestCase , FileUtil , ProcessUtil ):
112112
113113 def setUp (self ):
114+ temp_dir = self .get_temp_dir ()
114115 if is_cli :
115- self ._temporary_dir = os .path .join (self . temp_dir , "IronPythonTest" , clr .TargetFramework .translate (str .maketrans (" =," , "__-" )))
116+ self ._temporary_dir = os .path .join (temp_dir , "IronPythonTest" , clr .TargetFramework .translate (str .maketrans (" =," , "__-" )))
116117 else :
117- self ._temporary_dir = os .path .join (self . temp_dir , "IronPythonTest" , "CPython" )
118+ self ._temporary_dir = os .path .join (temp_dir , "IronPythonTest" , "CPython" )
118119 self .ensure_directory_present (self ._temporary_dir )
119120
120121 self ._iron_python_test_dll = _iron_python_test_dll
@@ -164,21 +165,21 @@ def get_environ_variable(self, key):
164165 return None
165166
166167 # file paths
167- def get_temporary_dir (self ):
168+ @property
169+ def temporary_dir (self ):
168170 return self ._temporary_dir
169- temporary_dir = property (get_temporary_dir )
170171
171- def get_iron_python_test_dll (self ):
172+ @property
173+ def iron_python_test_dll (self ):
172174 return self ._iron_python_test_dll
173- iron_python_test_dll = property (get_iron_python_test_dll )
174175
175- def get_test_dir (self ):
176+ @property
177+ def test_dir (self ):
176178 return self ._test_dir
177- test_dir = property (get_test_dir )
178179
179- def get_test_inputs_dir (self ):
180+ @property
181+ def test_inputs_dir (self ):
180182 return self ._test_inputs_dir
181- test_inputs_dir = property (get_test_inputs_dir )
182183
183184def run_test (name ):
184185 if name == '__main__' :
0 commit comments