Import LinuxCNC source tree
This commit is contained in:
24
tests/remap/fail/canon_error/remap.py
Normal file
24
tests/remap/fail/canon_error/remap.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# Copyright (C) 2013 Jeff Epler <jepler@unpythonic.net>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
import emccanon
|
||||
import interpreter
|
||||
|
||||
def failingprolog(self,*args, **words):
|
||||
emccanon.CANON_ERROR("%s is a literal percent s")
|
||||
self.set_errormsg("A failed Python prolog returning INTERP_ERROR")
|
||||
return interpreter.INTERP_ERROR
|
||||
|
||||
|
||||
Reference in New Issue
Block a user