summaryrefslogtreecommitdiff
path: root/setuptools
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-11-26 12:48:52 -0500
committerJason R. Coombs <jaraco@jaraco.com>2021-11-26 12:48:52 -0500
commit4c57dfb7b4d4a6765a1aa4d0ef7edf14e8284fe9 (patch)
tree2bc5fad63cbe3a4fdcee657365785f9069a0d3b8 /setuptools
parenta8e9cc865dfab3f6da15b9bf66ecda45c903bd33 (diff)
downloadpython-setuptools-git-4c57dfb7b4d4a6765a1aa4d0ef7edf14e8284fe9.tar.gz
Remove 'sample_test' fixture, unused.
Diffstat (limited to 'setuptools')
-rw-r--r--setuptools/tests/test_test.py59
1 files changed, 0 insertions, 59 deletions
diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py
index 7564f8bb..2d8a7c5d 100644
--- a/setuptools/tests/test_test.py
+++ b/setuptools/tests/test_test.py
@@ -1,5 +1,4 @@
from distutils import log
-import os
import pytest
from jaraco import path
@@ -10,64 +9,6 @@ from setuptools.dist import Distribution
from .textwrap import DALS
-SETUP_PY = DALS(
- """
- from setuptools import setup
-
- setup(name='foo',
- packages=['name', 'name.space', 'name.space.tests'],
- namespace_packages=['name'],
- test_suite='name.space.tests.test_suite',
- )
- """
-)
-
-NS_INIT = DALS(
- """
- # -*- coding: Latin-1 -*-
- # Söme Arbiträry Ünicode to test Distribute Issüé 310
- try:
- __import__('pkg_resources').declare_namespace(__name__)
- except ImportError:
- from pkgutil import extend_path
- __path__ = extend_path(__path__, __name__)
- """
-)
-
-TEST_PY = DALS(
- """
- import unittest
-
- class TestTest(unittest.TestCase):
- def test_test(self):
- print "Foo" # Should fail under Python 3
-
- test_suite = unittest.makeSuite(TestTest)
- """
-)
-
-
-@pytest.fixture
-def sample_test(tmpdir_cwd):
- os.makedirs('name/space/tests')
-
- # setup.py
- with open('setup.py', 'wt') as f:
- f.write(SETUP_PY)
-
- # name/__init__.py
- with open('name/__init__.py', 'wb') as f:
- f.write(NS_INIT.encode('Latin-1'))
-
- # name/space/__init__.py
- with open('name/space/__init__.py', 'wt') as f:
- f.write('#empty\n')
-
- # name/space/tests/__init__.py
- with open('name/space/tests/__init__.py', 'wt') as f:
- f.write(TEST_PY)
-
-
@pytest.fixture
def quiet_log():
# Running some of the other tests will automatically