Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.regrtest._ExpectedSkips Class Reference

List of all members.

Public Member Functions

def __init__
def isvalid
def getexpected

Public Attributes

 valid
 expected

Detailed Description

Definition at line 1526 of file regrtest.py.


Constructor & Destructor Documentation

Definition at line 1527 of file regrtest.py.

01527 
01528     def __init__(self):
01529         import os.path
01530         from test import test_timeout
01531 
01532         self.valid = False
01533         if sys.platform in _expectations:
01534             s = _expectations[sys.platform]
01535             self.expected = set(s.split())
01536 
01537             # These are broken tests, for now skipped on every platform.
01538             # XXX Fix these!
01539             self.expected.add('test_nis')
01540 
01541             # expected to be skipped on every platform, even Linux
01542             if not os.path.supports_unicode_filenames:
01543                 self.expected.add('test_pep277')
01544 
01545             # doctest, profile and cProfile tests fail when the codec for the
01546             # fs encoding isn't built in because PyUnicode_Decode() adds two
01547             # calls into Python.
01548             encs = ("utf-8", "latin-1", "ascii", "mbcs", "utf-16", "utf-32")
01549             if sys.getfilesystemencoding().lower() not in encs:
01550                 self.expected.add('test_profile')
01551                 self.expected.add('test_cProfile')
01552                 self.expected.add('test_doctest')
01553 
01554             if test_timeout.skip_expected:
01555                 self.expected.add('test_timeout')
01556 
01557             if sys.platform != "win32":
01558                 # test_sqlite is only reliable on Windows where the library
01559                 # is distributed with Python
01560                 WIN_ONLY = {"test_unicode_file", "test_winreg",
01561                             "test_winsound", "test_startfile",
01562                             "test_sqlite", "test_msilib"}
01563                 self.expected |= WIN_ONLY
01564 
01565             if sys.platform != 'sunos5':
01566                 self.expected.add('test_nis')
01567 
01568             if support.python_is_optimized():
01569                 self.expected.add("test_gdb")
01570 
01571             self.valid = True

Here is the caller graph for this function:


Member Function Documentation

Return set of test names we expect to skip on current platform.

self.isvalid() must be true.

Definition at line 1576 of file regrtest.py.

01576 
01577     def getexpected(self):
01578         """Return set of test names we expect to skip on current platform.
01579 
01580         self.isvalid() must be true.
01581         """
01582 
01583         assert self.isvalid()
01584         return self.expected

Here is the call graph for this function:

Definition at line 1572 of file regrtest.py.

01572 
01573     def isvalid(self):
01574         "Return true iff _ExpectedSkips knows about the current platform."
01575         return self.valid

Here is the caller graph for this function:


Member Data Documentation

Definition at line 1534 of file regrtest.py.

Definition at line 1531 of file regrtest.py.


The documentation for this class was generated from the following file: