Skip to content

Commit 6bd5801

Browse files
committed
Refine testcase to fix Python36 issue
1 parent 19ccd3a commit 6bd5801

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/examples/testmod/hello.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
try:
3434
__wraparmor__(main)
3535
except Exception as e:
36-
print(e)
36+
print('__wraparmor__ can not be called out of decorator')
3737

3838
# Check filename in trackback
3939
queens.test_exception()

tests/system-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ check_file_content $PROPATH/dist/queens.py '__pyarmor__(__name__'
318318
(cd $PROPATH/dist; $PYTHON hello.py >result.log 2>&1 )
319319
check_file_content $PROPATH/dist/result.log 'Found 92 solutions'
320320
check_file_content $PROPATH/dist/result.log 'index out of range'
321-
check_file_content $PROPATH/dist/result.log 'error return without exception set'
321+
check_file_content $PROPATH/dist/result.log '__wraparmor__ can not be called out of decorator'
322322
check_file_content $PROPATH/dist/result.log 'The value of __file__ is OK'
323323
check_file_content $PROPATH/dist/result.log '<frozen \[queens\]>'
324324

0 commit comments

Comments
 (0)