FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-future/discover_tests.py at py26 · IBMZ-Linux-OSS-Python/python-future · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
IBMZ-Linux-OSS-Python
/
python-future
Public
forked from
PythonCharmers/python-future
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-future
/
discover_tests.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (11 loc) · 309 Bytes
Breadcrumbs
python-future
/
discover_tests.py
Copy path
File metadata and controls
13 lines (11 loc) · 309 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
Simple auto test discovery.
From http://stackoverflow.com/a/17004409
"""
import
os
import
sys
import
unittest
def
additional_tests
():
setup_file
=
sys
.
modules
[
'__main__'
].
__file__
setup_dir
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
setup_file
))
return
unittest
.
defaultTestLoader
.
discover
(
setup_dir
)
Back
|
FazBrowse Home
|
New Git URL