Skip to content

Commit ae64b29

Browse files
committed
-
1 parent aa0ce1a commit ae64b29

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

python_toolbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
import python_toolbox.monkeypatch_copy_reg
1717

1818
__version_info__ = python_toolbox.version_info.VersionInfo(0, 4, 0)
19-
__version__ = '0.4'
19+
__version__ = __version_info__.version_text
2020

test_python_toolbox/test_address_tools/test_describe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_on_locally_defined_class():
2929
# Testing for locally defined class:
3030

3131

32-
if python_toolbox.__version_info__ <= (0, 4, 0):
32+
if python_toolbox.__version_info__ <= (0, 4, 0, 'release'):
3333
raise nose.SkipTest("This test doesn't pass in `python_toolbox` "
3434
"version 0.4 and below, because `describe` :"
3535
"doesn't support nested classes yet.")
@@ -249,7 +249,7 @@ def test_bad_module_name():
249249

250250
def test_function_in_something():
251251
'''Test `describe` doesn't fail when describing `{1: sum}`.'''
252-
if python_toolbox.__version_info__ <= (0, 4, 0):
252+
if python_toolbox.__version_info__ <= (0, 4, 0, 'release'):
253253
raise nose.SkipTest("This test doesn't pass in `python_toolbox`"
254254
"version 0.4 and below.")
255255
assert describe({1: sum}) == '{1: sum}'

test_python_toolbox/test_context_management/test_external.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def woohoo():
8787
self.assertEqual(state, [1, 42, 999])
8888

8989
def _create_contextmanager_attribs(self):
90-
if python_toolbox.__version_info__ <= (0, 4, 0):
90+
if python_toolbox.__version_info__ <= (0, 4, 0, 'release'):
9191
raise nose.SkipTest
9292
def attribs(**kw):
9393
def decorate(func):
@@ -109,7 +109,7 @@ def test_contextmanager_attribs(self):
109109
@unittest2.skipIf(hasattr(sys, 'flags') and sys.flags.optimize >= 2,
110110
"Docstrings are omitted with -O2 and above")
111111
def test_contextmanager_doc_attrib(self):
112-
if python_toolbox.__version_info__ <= (0, 4, 0):
112+
if python_toolbox.__version_info__ <= (0, 4, 0, 'release'):
113113
raise nose.SkipTest('Not sure what to do about this.')
114114
baz = self._create_contextmanager_attribs()
115115
self.assertEqual(baz.__doc__, "Whee!")
@@ -214,7 +214,7 @@ def method(self, a, b, c=None):
214214

215215

216216
def test_typo_enter(self):
217-
if python_toolbox.__version_info__ <= (0, 4, 0):
217+
if python_toolbox.__version_info__ <= (0, 4, 0, 'release'):
218218
raise nose.SkipTest
219219
class MyContextManager(ContextManager):
220220
def __unter__(self):
@@ -228,7 +228,7 @@ def __exit__(self, *exc):
228228

229229

230230
def test_typo_exit(self):
231-
if python_toolbox.__version_info__ <= (0, 4, 0):
231+
if python_toolbox.__version_info__ <= (0, 4, 0, 'release'):
232232
raise nose.SkipTest
233233
class MyContextManager(ContextManager):
234234
def __enter__(self):

0 commit comments

Comments
 (0)