File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -789,9 +789,12 @@ def temp_umask(umask):
789
789
finally :
790
790
os .umask (oldmask )
791
791
792
+ # TEST_HOME refers to the top level directory of the "test" package
793
+ # that contains Python's regression test suite
794
+ TEST_HOME = os .path .dirname (os .path .abspath (__file__ ))
792
795
793
- def findfile (file , here = __file__ , subdir = None ):
794
- """Try to find a file on sys.path and the working directory. If it is not
796
+ def findfile (file , here = TEST_HOME , subdir = None ):
797
+ """Try to find a file on sys.path or in the test directory. If it is not
795
798
found the argument passed to the function is returned (this does not
796
799
necessarily signal failure; could still be the legitimate path)."""
8000
tr>797
800
if os .path .isabs (file ):
Original file line number Diff line number Diff line change 11
11
EMPTY = ''
12
12
TESTS = 'inspect_fodder inspect_fodder2 mapping_tests'
13
13
TESTS = TESTS .split ()
14
- TEST_PATH = os .path .dirname (support . __file__ )
14
+ TEST_PATH = os .path .dirname (__file__ )
15
15
MODULES = "linecache abc" .split ()
16
16
MODULE_PATH = os .path .dirname (FILENAME )
17
17
Original file line number Diff line number Diff line change @@ -1237,6 +1237,7 @@ Péter Szabó
1237
1237
Amir Szekely
1238
1238
Arfrever Frehtes Taifersar Arahesis
1239
1239
Hideaki Takahashi
1240
+ Indra Talip
1240
1241
Neil Tallim
1241
1242
Geoff Talvola
1242
1243
Musashi Tamura
Original file line number Diff line number Diff line change @@ -571,6 +571,9 @@ Library
571
571
Tests
572
572
-----
573
573
574
+ - Issue #15494: test.support is now a package rather than a module (Initial
575
+ patch by Indra Talip)
576
+
574
577
- Issue #17944: test_zipfile now discoverable and uses subclassing to
575
578
generate tests for different compression types. Fixed a bug with skipping
576
579
some tests due to use of exhausted iterators.
You can’t perform that action at this time.
0 commit comments