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
7c9907e5
Commit
7c9907e5
authored
Dec 30, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix no-op tests in importlib.
parent
79ed84c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Lib/importlib/test/source/test_file_loader.py
Lib/importlib/test/source/test_file_loader.py
+4
-0
No files found.
Lib/importlib/test/source/test_file_loader.py
View file @
7c9907e5
...
...
@@ -256,6 +256,8 @@ class SourceLoaderBadBytecodeTest(BadBytecodeTest):
with
open
(
bytecode_path
,
'rb'
)
as
file
:
self
.
assertGreater
(
len
(
file
.
read
()),
8
)
self
.
_test_magic_only
(
test
)
@
source_util
.
writes_bytecode_files
def
test_bad_magic
(
self
):
# When the magic number is different, the bytecode should be
...
...
@@ -276,6 +278,8 @@ class SourceLoaderBadBytecodeTest(BadBytecodeTest):
with
open
(
bc_path
,
'rb'
)
as
file
:
self
.
assertGreater
(
len
(
file
.
read
()),
8
)
self
.
_test_partial_timestamp
(
test
)
@
source_util
.
writes_bytecode_files
def
test_no_marshal
(
self
):
# When there is only the magic number and timestamp, raise EOFError.
...
...
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