A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-August/016927.html below:

[Python-Dev] New regrtest.py gimmick

[Python-Dev] New regrtest.py gimmickMark 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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4