Permalink
Browse files

add an assert accoring to pre-condition of the usecase

  • Loading branch information...
1 parent 9a0473b commit 92ea781c565c65080701b0269637af4428dfb403 @juacompe committed Sep 21, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 async_exec/execute_job/context.py
@@ -4,6 +4,7 @@
class ExecuteJob(object):
def __init__(self, job):
self.job = Process(job)
+ assert not self.job.is_executed()
def __enter__(self):
self.job.execute()

0 comments on commit 92ea781

Please sign in to comment.