Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fb15aa1e
Commit
fb15aa1e
authored
Jul 28, 2013
by
Nick Coghlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close #15494: test.support is now a package rather than a module
Initial patch by Indra Talip
parent
e8c45d6d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
Lib/test/support/__init__.py
Lib/test/support/__init__.py
+5
-2
Lib/test/test_linecache.py
Lib/test/test_linecache.py
+1
-1
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/support.py
→
Lib/test/support
/__init__
.py
View file @
fb15aa1e
...
...
@@ -789,9 +789,12 @@ if hasattr(os, "umask"):
finally
:
os
.
umask
(
oldmask
)
# TEST_HOME refers to the top level directory of the "test" package
# that contains Python's regression test suite
TEST_HOME
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
def
findfile
(
file
,
here
=
__file__
,
subdir
=
None
):
"""Try to find a file on sys.path
and the working
directory. If it is not
def
findfile
(
file
,
here
=
TEST_HOME
,
subdir
=
None
):
"""Try to find a file on sys.path
or in the test
directory. If it is not
found the argument passed to the function is returned (this does not
necessarily signal failure; could still be the legitimate path)."""
if
os
.
path
.
isabs
(
file
):
...
...
Lib/test/test_linecache.py
View file @
fb15aa1e
...
...
@@ -11,7 +11,7 @@ INVALID_NAME = '!@$)(!@#_1'
EMPTY
=
''
TESTS
=
'inspect_fodder inspect_fodder2 mapping_tests'
TESTS
=
TESTS
.
split
()
TEST_PATH
=
os
.
path
.
dirname
(
support
.
__file__
)
TEST_PATH
=
os
.
path
.
dirname
(
__file__
)
MODULES
=
"linecache abc"
.
split
()
MODULE_PATH
=
os
.
path
.
dirname
(
FILENAME
)
...
...
Misc/ACKS
View file @
fb15aa1e
...
...
@@ -1237,6 +1237,7 @@ Péter Szabó
Amir Szekely
Arfrever Frehtes Taifersar Arahesis
Hideaki Takahashi
Indra Talip
Neil Tallim
Geoff Talvola
Musashi Tamura
...
...
Misc/NEWS
View file @
fb15aa1e
...
...
@@ -571,6 +571,9 @@ Library
Tests
-----
- Issue #15494: test.support is now a package rather than a module (Initial
patch by Indra Talip)
- Issue #17944: test_zipfile now discoverable and uses subclassing to
generate tests for different compression types. Fixed a bug with skipping
some tests due to use of exhausted iterators.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment