Home | Trees | Indices | Help |
|
---|
|
1 # Copyright (C) 2004-2011 Power System Engineering Research Center (PSERC) 2 # Copyright (C) 2011 Richard Lincoln 3 # 4 # PYPOWER is free software: you can redistribute it and/or modify 5 # it under the terms of the GNU General Public License as published 6 # by the Free Software Foundation, either version 3 of the License, 7 # or (at your option) any later version. 8 # 9 # PYPOWER is distributed in the hope that it will be useful, 10 # but WITHOUT ANY WARRANTY], without even the implied warranty of 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # GNU General Public License for more details. 13 # 14 # You should have received a copy of the GNU General Public License 15 # along with PYPOWER. If not, see <http://www.gnu.org/licenses/>. 16 17 """Skips a number of tests. 18 """ 19 20 from pypower.t.t_globals import TestGlobals 21 2224 """Skips a number of tests. 25 26 Increments the global test count and skipped tests count. Prints 27 'skipped tests x..y : ' followed by the C{msg}, unless the 28 global variable t_quiet is true. Intended to be called between calls to 29 C{t_begin} and C{t_end}. 30 31 @author: Ray Zimmerman (PSERC Cornell) 32 @author: Richard Lincoln 33 """ 34 msg = ' : ' + msg 35 36 TestGlobals.t_skip_cnt = TestGlobals.t_skip_cnt + cnt 37 if not TestGlobals.t_quiet: 38 print 'skipped tests %d..%d%s' % (TestGlobals.t_counter, 39 TestGlobals.t_counter + cnt - 1, 40 msg) 41 42 TestGlobals.t_counter = TestGlobals.t_counter + cnt43
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 29 18:21:28 2011 | http://epydoc.sourceforge.net |