summaryrefslogtreecommitdiff
path: root/pbr/tests/test_packaging.py
diff options
context:
space:
mode:
authorlifeless <robertc@robertcollins.net>2015-04-16 23:35:15 +0000
committerRobert Collins <rbtcollins@hp.com>2015-04-17 11:38:55 +1200
commit5ad364f2511d5f31bc076b7ca1089b1248708866 (patch)
tree425d81f026cd3f69e96f3ff088e69dccac27ecb3 /pbr/tests/test_packaging.py
parentda0f226cc461bb6555f459e3fd7b4af51ca7a63a (diff)
downloadpbr-5ad364f2511d5f31bc076b7ca1089b1248708866.tar.gz
Revert "Support platform-specific requirements files"
This reverts commit 8cdb41cf1264e71fd2f479efa7decd38c1f91cfa. https://www.python.org/dev/peps/pep-0426/#environment-markers is the right approach for this, and as we haven't released master its safe to back this out. Change-Id: Ic7298fcbde54c6beda67c3c897efa75f1b60b78f
Diffstat (limited to 'pbr/tests/test_packaging.py')
-rw-r--r--pbr/tests/test_packaging.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/pbr/tests/test_packaging.py b/pbr/tests/test_packaging.py
index eac76b2..fccad45 100644
--- a/pbr/tests/test_packaging.py
+++ b/pbr/tests/test_packaging.py
@@ -40,7 +40,6 @@
import os
import re
-import sys
import tempfile
import fixtures
@@ -243,32 +242,6 @@ class TestNestedRequirements(base.BaseTestCase):
self.assertEqual(result, ['pbr'])
-class TestGetRequirements(base.BaseTestCase):
-
- def test_get_requirements_file(self):
- platforms = ['Windows', 'Freebsd', 'Darwin', 'Linux']
- version = sys.version_info[0]
-
- with mock.patch('platform.system') as platform_system:
- platform_system.side_effect = platforms
-
- for platform in map(str.lower, platforms):
- expected = [
- 'requirements-{plat}-py{ver}.txt'.format(
- plat=platform, ver=version),
- 'tools/pip-requires-{plat}-py{ver}'.format(
- plat=platform, ver=version),
- 'requirements-{0}.txt'.format(platform),
- 'tools/pip-requires-{0}'.format(platform),
- 'requirements-py{0}.txt'.format(version),
- 'tools/pip-requires-py{0}'.format(version),
- 'requirements.txt',
- 'tools/pip-requires',
- ]
- files = packaging.get_requirements_files()
- self.assertEqual(expected, files)
-
-
class TestVersions(base.BaseTestCase):
scenarios = [