old_contents: import pytest
  pytest.main("-s tests/unit")
  
new_contents: import pytest
  r = pytest.main("-s tests/unit")
  if r:
  	raise Exception("There were test failures or errors.")
subject: raise exception in test script if there are test failures or errors