@@ -357,9 +357,9 @@ def test_execute_err_abort(tdir):
357357 encoding = 'utf8' )
358358 assert out .returncode == 0
359359 assert os .path .exists (os .path .join (tdir , fname_err + '.' + extension ))
360- # with open(os.path.join(tdir, fname_err + '.' + extension), 'r') as f:
361- # fout = f.read()
362- # assert 'unexpected EOF' in fout #this can fail in GitHub actions
360+ with open (os .path .join (tdir , fname_err + '.' + extension ), 'r' ) as f :
361+ fout = f .read ()
362+ assert 'unexpected EOF' in fout
363363 os .remove (os .path .join (tdir , fname_err + '.' + extension ))
364364 # ipynb format
365365 format = 'ipynb'
@@ -375,9 +375,9 @@ def test_execute_err_abort(tdir):
375375 encoding = 'utf8' )
376376 assert out .returncode == 0
377377 assert os .path .exists (os .path .join (tdir , fname_err + '.' + extension ))
378- # with open(os.path.join(tdir, fname_err + '.' + extension), 'r') as f:
379- # fout = f.read()
380- # assert 'unexpected EOF' in fout #this can fail in GitHub actions
378+ with open (os .path .join (tdir , fname_err + '.' + extension ), 'r' ) as f :
379+ fout = f .read ()
380+ assert 'unexpected EOF' in fout
381381 os .remove (os .path .join (tdir , fname_err + '.' + extension ))
382382
383383
@@ -664,8 +664,8 @@ def test_doconce_exercises_in_zip(change_test_dir, tdir):
664664 assert os .path .exists (os .path .join (fname_unzipped , 'solutions.do.txt' ))
665665 with open (os .path .join (fname_unzipped ,'solutions.do.txt' ), 'r' ) as f :
666666 do = f .read ()
667- assert '__a) Solution .__' in do
668- assert '__a) Solution .__\n !bc pycod' in do
667+ assert '__Solution .__' in do
668+ assert '__Solution .__\n !bc pycod' in do
669669 assert '#--- ' not in do
670670
671671
0 commit comments