summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2015-11-23 19:55:04 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2015-11-23 23:12:28 +0800
commitaf7ffe0e2af1aed15f6e9300668d952d7955682f (patch)
tree5d450b21d471639a9f6a24748bf342b9227506bc
parent8dcf666ba9e0d94ff4057f1afda20f0276950e92 (diff)
downloadoslo-concurrency-3.1.0.tar.gz
Drop python 2.6 support3.1.0
Change-Id: I921e29d25e0cfb089028f780bc942a60c9712278
-rw-r--r--oslo_concurrency/tests/unit/test_lockutils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/oslo_concurrency/tests/unit/test_lockutils.py b/oslo_concurrency/tests/unit/test_lockutils.py
index b5a1a3c..d5a7734 100644
--- a/oslo_concurrency/tests/unit/test_lockutils.py
+++ b/oslo_concurrency/tests/unit/test_lockutils.py
@@ -485,8 +485,7 @@ class LockutilsModuleTestCase(test_base.BaseTestCase):
cmd = [sys.executable, '-m', 'oslo_concurrency.lockutils']
with open(os.devnull, 'w') as devnull:
retval = subprocess.call(cmd, stderr=devnull)
- # 1 for Python 2.7 and 3.x, 255 for 2.6
- self.assertIn(retval, [1, 255])
+ self.assertEqual(1, retval)
class TestLockFixture(test_base.BaseTestCase):