@@ -214,35 +214,41 @@ def test_pypygeneratetext_as_unit(self):
214214
215215 def test_sum_as_unit (self ):
216216
217- expected , output , errors , exit_status = self ._run_command ('sum' , action = 'getinfo' , phase = 'reduce' , protocol = 1 )
218- self .assertEqual (0 , exit_status , msg = unicode (errors ))
219- self .assertEqual ('' , errors )
220- self ._compare_csv_files_time_sensitive (expected , output )
221-
222- expected , output , errors , exit_status = self ._run_command ('sum' , action = 'getinfo' , phase = 'map' , protocol = 1 )
223- self .assertEqual (0 , exit_status , msg = unicode (errors ))
224- self .assertEqual ('' , errors )
225- self ._compare_csv_files_time_sensitive (expected , output )
217+ # expected, output, errors, exit_status = self._run_command('sum', action='getinfo', phase='reduce', protocol=1)
218+ # self.assertEqual(0, exit_status, msg=unicode(errors))
219+ # self.assertEqual('', errors)
220+ # self._compare_csv_files_time_sensitive(expected, output)
221+ #
222+ # expected, output, errors, exit_status = self._run_command('sum', action='getinfo', phase='map', protocol=1)
223+ # self.assertEqual(0, exit_status, msg=unicode(errors))
224+ # self.assertEqual('', errors)
225+ # self._compare_csv_files_time_sensitive(expected, output)
226+ #
227+ # expected, output, errors, exit_status = self._run_command('sum', action='execute', phase='map', protocol=1)
228+ # self.assertEqual(0, exit_status, msg=unicode(errors))
229+ # self.assertEqual('', errors)
230+ # self._compare_csv_files_time_sensitive(expected, output)
231+ #
232+ # expected, output, errors, exit_status = self._run_command('sum', action='execute', phase='reduce', protocol=1)
233+ # self.assertEqual(0, exit_status, msg=unicode(errors))
234+ # self.assertEqual('', errors)
235+ # self._compare_csv_files_time_sensitive(expected, output)
226236
227- expected , output , errors , exit_status = self ._run_command ('sum' , action = 'execute' , phase = 'map' , protocol = 1 )
228- self .assertEqual (0 , exit_status , msg = unicode (errors ))
229- self .assertEqual ('' , errors )
230- self ._compare_csv_files_time_sensitive (expected , output )
237+ expected , output , errors , exit_status = self ._run_command ('sum' , phase = 'map' )
231238
232- expected , output , errors , exit_status = self ._run_command ('sum' , action = 'execute' , phase = 'reduce' , protocol = 1 )
233- self .assertEqual (0 , exit_status , msg = unicode (errors ))
234- self .assertEqual ('' , errors )
235- self ._compare_csv_files_time_sensitive (expected , output )
239+ print (output )
240+ print (expected )
236241
237- expected , output , errors , exit_status = self ._run_command ('sum' , phase = 'map' )
238242 self .assertEqual (0 , exit_status , msg = unicode (errors ))
239243 self .assertEqual ('' , errors )
240244 self ._compare_chunks (expected , output )
241245
242- expected , output , errors , exit_status = self ._run_command ('sum' , phase = 'reduce' )
243- self .assertEqual (0 , exit_status , msg = unicode (errors ))
244- self .assertEqual ('' , errors )
245- self ._compare_chunks (expected , output )
246+
247+
248+ # expected, output, errors, exit_status = self._run_command('sum', phase='reduce')
249+ # self.assertEqual(0, exit_status, msg=unicode(errors))
250+ # self.assertEqual('', errors)
251+ # self._compare_chunks(expected, output)
246252
247253 return
248254
@@ -263,7 +269,7 @@ def assertInfoEqual(self, output, expected):
263269
264270 self .assertDictEqual (expected , output )
265271
266- def _compare_chunks (self , expected , output , time_sensitive = True ):
272+ def _compare_chunks (self , expected , output , time_sensitive = True ):
267273
268274 if time_sensitive :
269275 self .assertEqual (len (expected ), len (output ))
@@ -355,7 +361,7 @@ def _get_search_command_path(self, name):
355361 def _load_chunks (self , ifile ):
356362 import re
357363
358- pattern = re .compile (r'chunked 1.0,(?P<metadata_length>\d+),(?P<body_length>\d+)(\n)? ' )
364+ pattern = re .compile (r'chunked 1.0,(?P<metadata_length>\d+),(?P<body_length>\d+)' )
359365 decoder = json .JSONDecoder ()
360366
361367 chunks = []
0 commit comments