diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-02 11:43:29 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-02 11:43:29 -0500 |
commit | c3e74e46e20ceb7cc126f28611d0b9c098a333f2 (patch) | |
tree | 16c85a089be8ed07a90618118e530b3a589e342a /setuptools/tests/test_sandbox.py | |
parent | 3412dfc4261abb80dbbd4a17ae3b06308a4a0d95 (diff) | |
download | external_python_setuptools-c3e74e46e20ceb7cc126f28611d0b9c098a333f2.tar.gz external_python_setuptools-c3e74e46e20ceb7cc126f28611d0b9c098a333f2.tar.bz2 external_python_setuptools-c3e74e46e20ceb7cc126f28611d0b9c098a333f2.zip |
Ported test_sandbox to pytest from unittest.
Diffstat (limited to 'setuptools/tests/test_sandbox.py')
-rw-r--r-- | setuptools/tests/test_sandbox.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/setuptools/tests/test_sandbox.py b/setuptools/tests/test_sandbox.py index 6a890ebc..138e7f87 100644 --- a/setuptools/tests/test_sandbox.py +++ b/setuptools/tests/test_sandbox.py @@ -3,7 +3,6 @@ import sys import os import shutil -import unittest import tempfile import types @@ -24,12 +23,12 @@ def has_win32com(): return False return True -class TestSandbox(unittest.TestCase): +class TestSandbox: - def setUp(self): + def setup_method(self, method): self.dir = tempfile.mkdtemp() - def tearDown(self): + def teardown_method(self, method): shutil.rmtree(self.dir) def test_devnull(self): @@ -78,6 +77,3 @@ class TestSandbox(unittest.TestCase): with open(setup_py, 'wb') as stream: stream.write(b'"degenerate script"\r\n') setuptools.sandbox._execfile(setup_py, globals()) - -if __name__ == '__main__': - unittest.main() |