summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_version.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-10-04 23:46:37 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-10-04 23:46:37 (GMT)
commitc4637714b0d1c80a8a7d40a590b1a113bf112ffd (patch)
tree0c02b653bcb7d6bc63c2ac3d6a3f194a74013547 /Lib/packaging/tests/test_version.py
parent763cc6eaee612d803815a5eea28b95c39f6dce48 (diff)
downloadcpython-c4637714b0d1c80a8a7d40a590b1a113bf112ffd.zip
cpython-c4637714b0d1c80a8a7d40a590b1a113bf112ffd.tar.gz
cpython-c4637714b0d1c80a8a7d40a590b1a113bf112ffd.tar.bz2
Cosmetic fixes for whitespace and a regex in packaging.
The goal of the regex is to catch a (alpha), b (beta), c or rc (release candidate), so the existing pattern puzzled me. Tests were OK before and after the change.
Diffstat (limited to 'Lib/packaging/tests/test_version.py')
-rw-r--r--Lib/packaging/tests/test_version.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/packaging/tests/test_version.py b/Lib/packaging/tests/test_version.py
index 54a9e7a..2c86111 100644
--- a/Lib/packaging/tests/test_version.py
+++ b/Lib/packaging/tests/test_version.py
@@ -103,7 +103,7 @@ class VersionTestCase(unittest.TestCase):
False
>>> V('1.2.0rc1') >= V('1.2.0')
False
- >>> (V('1.0') > V('1.0b2'))
+ >>> V('1.0') > V('1.0b2')
True
>>> V('1.0') > V('1.0c2')
True
@@ -248,9 +248,9 @@ class VersionWhiteBoxTestCase(unittest.TestCase):
def test_parse_numdots(self):
# For code coverage completeness, as pad_zeros_length can't be set or
# influenced from the public interface
- self.assertEqual(V('1.0')._parse_numdots('1.0', '1.0',
- pad_zeros_length=3),
- [1, 0, 0])
+ self.assertEqual(
+ V('1.0')._parse_numdots('1.0', '1.0', pad_zeros_length=3),
+ [1, 0, 0])
def test_suite():