Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyrasite
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
Kirill Smelkov
pyrasite
Commits
f603862d
Commit
f603862d
authored
Mar 28, 2012
by
Ralph Bean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using unittest2 to get skipTest on py2.4.
parent
e71ad5cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
pyrasite/tests/test_code_injection.py
pyrasite/tests/test_code_injection.py
+3
-3
pyrasite/tests/test_ipc.py
pyrasite/tests/test_ipc.py
+6
-6
setup.py
setup.py
+7
-1
No files found.
pyrasite/tests/test_code_injection.py
View file @
f603862d
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
import
os
import
os
import
sys
import
sys
import
unittest
import
unittest
2
import
subprocess
import
subprocess
import
pyrasite
import
pyrasite
...
@@ -26,7 +26,7 @@ from pyrasite.tests.utils import generate_program, run_program, stop_program, \
...
@@ -26,7 +26,7 @@ from pyrasite.tests.utils import generate_program, run_program, stop_program, \
interpreters
interpreters
class
TestCodeInjection
(
unittest
.
TestCase
):
class
TestCodeInjection
(
unittest
2
.
TestCase
):
def
assert_output_contains
(
self
,
stdout
,
stderr
,
text
):
def
assert_output_contains
(
self
,
stdout
,
stderr
,
text
):
assert
text
in
str
(
stdout
),
\
assert
text
in
str
(
stdout
),
\
...
@@ -83,4 +83,4 @@ class TestCodeInjection(unittest.TestCase):
...
@@ -83,4 +83,4 @@ class TestCodeInjection(unittest.TestCase):
os
.
unlink
(
program
)
os
.
unlink
(
program
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
2
.
main
()
pyrasite/tests/test_ipc.py
View file @
f603862d
...
@@ -17,13 +17,13 @@
...
@@ -17,13 +17,13 @@
import
os
import
os
import
sys
import
sys
import
unittest
import
unittest
2
import
pyrasite
import
pyrasite
from
pyrasite.tests.utils
import
run_program
,
generate_program
,
stop_program
from
pyrasite.tests.utils
import
run_program
,
generate_program
,
stop_program
class
TestIPCContextManager
(
unittest
.
TestCase
):
class
TestIPCContextManager
(
unittest
2
.
TestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
prog
=
generate_program
()
self
.
prog
=
generate_program
()
...
@@ -43,11 +43,11 @@ class TestIPCContextManager(unittest.TestCase):
...
@@ -43,11 +43,11 @@ class TestIPCContextManager(unittest.TestCase):
# Otherwise import a module which contains modern syntax.
# Otherwise import a module which contains modern syntax.
# It really contains our test case, but we have pushed it out into
# It really contains our test case, but we have pushed it out into
# another module so that python 2.4 never sees it.
# another module so that python 2.4 never sees it.
import
context_manager_case
import
pyrasite.tests.
context_manager_case
context_manager_case
.
context_manager_business
(
self
)
pyrasite
.
tests
.
context_manager_case
.
context_manager_business
(
self
)
class
TestIPC
(
unittest
.
TestCase
):
class
TestIPC
(
unittest
2
.
TestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
prog
=
generate_program
()
self
.
prog
=
generate_program
()
...
@@ -94,4 +94,4 @@ class TestIPC(unittest.TestCase):
...
@@ -94,4 +94,4 @@ class TestIPC(unittest.TestCase):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
2
.
main
()
setup.py
View file @
f603862d
...
@@ -15,6 +15,12 @@ elif sys.version_info[0] == 2:
...
@@ -15,6 +15,12 @@ elif sys.version_info[0] == 2:
if
sys
.
version_info
[
1
]
<
7
:
if
sys
.
version_info
[
1
]
<
7
:
requirements
.
append
(
'argparse'
)
requirements
.
append
(
'argparse'
)
tests_require
=
[
'nose'
]
if
sys
.
version_info
[
0
]
==
3
:
tests_require
.
append
(
'unittest2py3k'
)
else
:
tests_require
.
append
(
'unittest2'
)
setup
(
name
=
'pyrasite'
,
setup
(
name
=
'pyrasite'
,
version
=
version
,
version
=
version
,
description
=
"Inject code into a running Python process"
,
description
=
"Inject code into a running Python process"
,
...
@@ -28,7 +34,7 @@ setup(name='pyrasite',
...
@@ -28,7 +34,7 @@ setup(name='pyrasite',
include_package_data
=
True
,
include_package_data
=
True
,
zip_safe
=
False
,
zip_safe
=
False
,
install_requires
=
requirements
,
install_requires
=
requirements
,
tests_require
=
[
'nose'
]
,
tests_require
=
tests_require
,
test_suite
=
'nose.collector'
,
test_suite
=
'nose.collector'
,
entry_points
=
"""
entry_points
=
"""
[console_scripts]
[console_scripts]
...
...
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