File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -787,9 +787,12 @@ def temp_umask(umask):
787787 finally :
788788 os .umask (oldmask )
789789
790+ # TEST_HOME refers to the top level directory of the "test" package
791+ # that contains Python's regression test suite
792+ TEST_HOME = os .path .dirname (os .path .abspath (__file__ ))
790793
791- def findfile (file , here = __file__ , subdir = None ):
792- """Try to find a file on sys.path and the working directory. If it is not
794+ def findfile (file , here = TEST_HOME , subdir = None ):
795+ """Try to find a file on sys.path or in the test directory. If it is not
793796 found the argument passed to the function is returned (this does not
794797 necessarily signal failure; could still be the legitimate path)."""
795798 if os .path .isabs (file ):
Original file line number Diff line number Diff line change 1111EMPTY = ''
1212TESTS = 'inspect_fodder inspect_fodder2 mapping_tests'
1313TESTS = TESTS .split ()
14- TEST_PATH = os .path .dirname (support . __file__ )
14+ TEST_PATH = os .path .dirname (__file__ )
1515MODULES = "linecache abc" .split ()
1616MODULE_PATH = os .path .dirname (FILENAME )
1717
Original file line number Diff line number Diff line change @@ -1202,6 +1202,7 @@ Thenault Sylvain
12021202Péter Szabó
12031203Amir Szekely
12041204Arfrever Frehtes Taifersar Arahesis
1205+ Indra Talip
12051206Neil Tallim
12061207Geoff Talvola
12071208Musashi Tamura
Original file line number Diff line number Diff line change 222222Tests
223223-----
224224
225+ - Issue #15494: test.support is now a package rather than a module (Initial
226+ patch by Indra Talip)
227+
225228- Issue #17944: test_zipfile now discoverable and uses subclassing to
226229 generate tests for different compression types. Fixed a bug with skipping
227230 some tests due to use of exhausted iterators.
You can’t perform that action at this time.
0 commit comments