Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add an assert accoring to pre-condition of the usecase

  • Loading branch information...
commit 92ea781c565c65080701b0269637af4428dfb403 1 parent 9a0473b
@juacompe authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  async_exec/execute_job/context.py
View
1  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()
Please sign in to comment.
Something went wrong with that request. Please try again.