Skip to content

Commit

Permalink
Merge pull request #57 from takkii/develop
Browse files Browse the repository at this point in the history
Update.
  • Loading branch information
takkii committed Nov 1, 2023
2 parents 1d36724 + 5b4d85f commit 7a61aeb
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions pake.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
# Run, unit/xunit.py
import gc

print('----------------------------------------------------------------------')
try:
print('---------------------------------------------------------------')

with open('./unit/xunit.py') as xut:
xcmd = xut.read()
exec(xcmd)
# Run, unit/xunit.py
with open('./unit/xunit.py') as xut:
xcmd = xut.read()
exec(xcmd)

print('----------------------------------------------------------------------')
print('---------------------------------------------------------------')

# Run, unit/unit.py
# Run, unit/unit.py
with open('./unit/unit.py') as ut:
cmd = ut.read()
exec(cmd)

with open('./unit/unit.py') as ut:
cmd = ut.read()
exec(cmd)
except Exception as ext:
print(ext)
raise RuntimeError from None

# Custom Exception.
except ValueError as ext:
print(ext)
raise RuntimeError from None

finally:
# GC collection.
gc.collect()

0 comments on commit 7a61aeb

Please sign in to comment.