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
b32cf8da
Commit
b32cf8da
authored
Nov 12, 2007
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another fix for #1414
parent
0026a885
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Lib/test/test_frozen.py
Lib/test/test_frozen.py
+0
-1
Lib/test/test_pkg.py
Lib/test/test_pkg.py
+5
-1
No files found.
Lib/test/test_frozen.py
View file @
b32cf8da
...
...
@@ -4,7 +4,6 @@ from __future__ import with_statement
from
test.test_support
import
captured_stdout
,
run_unittest
import
unittest
import
sys
,
os
import
warnings
class
FrozenTests
(
unittest
.
TestCase
):
def
test_frozen
(
self
):
...
...
Lib/test/test_pkg.py
View file @
b32cf8da
...
...
@@ -43,14 +43,18 @@ def fixdir(lst):
# from package import * (defined in __init__)
class
Test
(
unittest
.
TestCase
):
class
Test
Pkg
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
root
=
None
self
.
syspath
=
list
(
sys
.
path
)
self
.
sysmodules
=
sys
.
modules
.
copy
()
def
tearDown
(
self
):
sys
.
path
[:]
=
self
.
syspath
sys
.
modules
.
clear
()
sys
.
modules
.
update
(
self
.
sysmodules
)
del
self
.
sysmodules
cleanout
(
self
.
root
)
def
run_code
(
self
,
code
):
...
...
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