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
66e1a254
Commit
66e1a254
authored
Aug 01, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rewritten version of Finn Bock's SF patch #446907 (Allow jython to
complete test_import).
parent
a7f6de76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Lib/test/test_import.py
Lib/test/test_import.py
+4
-1
No files found.
Lib/test/test_import.py
View file @
66e1a254
...
...
@@ -19,8 +19,11 @@ import double_const # don't blink -- that *was* the test
sys
.
path
.
insert
(
0
,
os
.
curdir
)
source
=
TESTFN
+
".py"
pyc
=
TESTFN
+
".pyc"
pyo
=
TESTFN
+
".pyo"
if
sys
.
platform
.
endswith
(
'java'
):
pyc
=
TESTFN
+
"$py.class"
else
:
pyc
=
TESTFN
+
".pyc"
f
=
open
(
source
,
"w"
)
print
>>
f
,
"# This will test Python's ability to import a .py file"
...
...
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