[Python-Dev] New regrtest.py gimmick
Mark Favas
m.favas@per.dem.csiro.au
Sun, 12 Aug 2001 09:42:02 +0800
[Tim tests for expected platform-specific skips]
... just a slight change needed for the new gimmick to be happy on other
platforms <wink>
Instead of:
e = _ExpectedSkips()
if e.isvalid():
surprise = _Set(skipped) - e.getexpected()
plat = sys.platform #<-------------------------------------
if surprise:
print count(len(surprise), "skip"), \
"unexpected on", plat + ":", \
" ".join(surprise.tolist())
else:
print "Those skips are all expected on", plat + "."
else:
print "Ask someone to teach regrtest.py about which tests
are"
print "expected to get skipped on", plat + "."
try:
e = _ExpectedSkips()
plat = sys.platform #<+++++++++++++++++++++++++++++++++++++++++
if e.isvalid():
surprise = _Set(skipped) - e.getexpected()
if surprise:
print count(len(surprise), "skip"), \
"unexpected on", plat + ":", \
" ".join(surprise.tolist())
else:
print "Those skips are all expected on", plat + "."
else:
print "Ask someone to teach regrtest.py about which tests
are"
print "expected to get skipped on", plat + "."
--
Mark Favas - m.favas@per.dem.csiro.au
CSIRO, Private Bag No 5, Wembley, Western Australia 6913, AUSTRALIA