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
c49715f6
Commit
c49715f6
authored
16 years ago
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move importlib.test.extension.test_finder over to importlib.test.finder_tests.
parent
a2a8e8be
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
Lib/importlib/test/extension/test_finder.py
Lib/importlib/test/extension/test_finder.py
+19
-2
No files found.
Lib/importlib/test/extension/test_finder.py
View file @
c49715f6
import
importlib
from
..
import
finder_tests
from
.
import
test_path_hook
import
unittest
class
FinderTests
(
unittest
.
TestCase
):
class
FinderTests
(
finder_tests
.
FinderTests
):
"""Test the finder for extension modules."""
...
...
@@ -11,9 +12,25 @@ class FinderTests(unittest.TestCase):
importer
=
importlib
.
ExtensionFileImporter
(
test_path_hook
.
PATH
)
return
importer
.
find_module
(
fullname
)
def
test_
success
(
self
):
def
test_
module
(
self
):
self
.
assert_
(
self
.
find_module
(
test_path_hook
.
NAME
))
def
test_package
(
self
):
# Extension modules cannot be an __init__ for a package.
pass
def
test_module_in_package
(
self
):
# No extension module in a package available for testing.
pass
def
test_package_in_package
(
self
):
# Extension modules cannot be an __init__ for a package.
pass
def
test_package_over_module
(
self
):
# Extension modules cannot be an __init__ for a package.
pass
def
test_failure
(
self
):
self
.
assert_
(
self
.
find_module
(
'asdfjkl;'
)
is
None
)
...
...
This diff is collapsed.
Click to expand it.
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