Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
0c96212a
Commit
0c96212a
authored
May 20, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2621 rename test.test_support to test.support
parent
fbd52989
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
tests/test_core.py
tests/test_core.py
+5
-5
tests/test_dist.py
tests/test_dist.py
+1
-1
tests/test_sysconfig.py
tests/test_sysconfig.py
+1
-1
No files found.
tests/test_core.py
View file @
0c96212a
...
...
@@ -5,7 +5,7 @@ import distutils.core
import
os
import
shutil
import
sys
import
test.
test_
support
import
test.support
import
unittest
...
...
@@ -39,13 +39,13 @@ class CoreTestCase(unittest.TestCase):
self
.
cleanup_testfn
()
def
cleanup_testfn
(
self
):
path
=
test
.
test_
support
.
TESTFN
path
=
test
.
support
.
TESTFN
if
os
.
path
.
isfile
(
path
):
os
.
remove
(
path
)
elif
os
.
path
.
isdir
(
path
):
shutil
.
rmtree
(
path
)
def
write_setup
(
self
,
text
,
path
=
test
.
test_
support
.
TESTFN
):
def
write_setup
(
self
,
text
,
path
=
test
.
support
.
TESTFN
):
open
(
path
,
"w"
).
write
(
text
)
return
path
...
...
@@ -63,8 +63,8 @@ class CoreTestCase(unittest.TestCase):
cwd
=
os
.
getcwd
()
# Create a directory and write the setup.py file there:
os
.
mkdir
(
test
.
test_
support
.
TESTFN
)
setup_py
=
os
.
path
.
join
(
test
.
test_
support
.
TESTFN
,
"setup.py"
)
os
.
mkdir
(
test
.
support
.
TESTFN
)
setup_py
=
os
.
path
.
join
(
test
.
support
.
TESTFN
,
"setup.py"
)
distutils
.
core
.
run_setup
(
self
.
write_setup
(
setup_prints_cwd
,
path
=
setup_py
))
...
...
tests/test_dist.py
View file @
0c96212a
...
...
@@ -7,7 +7,7 @@ import io
import
sys
import
unittest
from
test.
test_
support
import
TESTFN
from
test.support
import
TESTFN
class
test_dist
(
distutils
.
cmd
.
Command
):
...
...
tests/test_sysconfig.py
View file @
0c96212a
...
...
@@ -4,7 +4,7 @@ from distutils import sysconfig
import
os
import
unittest
from
test.
test_
support
import
TESTFN
from
test.support
import
TESTFN
class
SysconfigTestCase
(
unittest
.
TestCase
):
...
...
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