Skip to content

Commit e9355bd

Browse files
committed
-
1 parent c2750fc commit e9355bd

File tree

10 files changed

+19
-25
lines changed

10 files changed

+19
-25
lines changed

docs/installation.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Installing the Python Toolbox
1313
Requirements
1414
============
1515

16-
* Python, version 2.5 or above. If you're new to Python, `download version 2.7
17-
<http://python.org/download/releases/2.7.2>`_.
16+
* Python, version 2.6 or 2.7 or above. If you're new to Python, `download
17+
version 2.7 <http://python.org/download/releases/2.7.2>`_.
1818

1919
* `distribute`_.
2020

python_toolbox/nifty_collections/lazy_tuple.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
from python_toolbox.third_party import abcs_collection
1515

1616
from python_toolbox import cute_iter_tools
17-
from python_toolbox.infinity import infinity
1817
from python_toolbox import decorator_tools
1918
from python_toolbox import comparison_tools
2019
from python_toolbox import sequence_tools
2120

2221

22+
infinity = float('inf')
23+
2324
class _SENTINEL(object):
2425
'''Sentinel used to detect the end of an iterable.'''
2526

python_toolbox/sequence_tools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88

99
from python_toolbox.nifty_collections import Counter
1010
from python_toolbox import math_tools
11-
from python_toolbox.infinity import infinity
1211
from python_toolbox.third_party import abcs_collection
1312

1413

14+
infinity = float('inf')
15+
16+
1517
def are_equal_regardless_of_order(seq1, seq2):
1618
'''
1719
Return whether the two sequences are equal in the elements they contain,

test_python_toolbox/test_abc_tools/test_abstract_static_method.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
def test_instantiate_without_subclassing():
1515
'''Test you can't instantiate a class with an `AbstractStaticMethod`.'''
1616

17-
if sys.version_info[:2] <= (2, 5):
18-
raise nose.SkipTest("Python 2.5 and below can't enforce abstract "
19-
"methods.")
20-
2117
class A(object):
2218
__metaclass__ = abc.ABCMeta
2319

test_python_toolbox/test_arguments_profile.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,6 @@ def func(a, b, c=3, d=4, **kwargs):
480480
pass
481481
assert sys.version_info[0] == 2
482482
assert sys.version_info[1] >= 5
483-
if sys.version_info[1] == 5:
484-
raise nose.SkipTest("Python 2.5 can't compile this test.")
485483

486484

487485
a2 = ArgumentsProfile(func, 7, ({'a': 'b'},), set([1, (3, 4)]),
@@ -491,13 +489,9 @@ def func(a, b, c=3, d=4, **kwargs):
491489
(('meow', [1, 2, {1: [1, 2]}]),)
492490
)
493491

494-
495-
496-
# Python 2.5 can't compile the following, so we're compiling it dynamically
497-
# so as to not prevent Python 2.5 from being able to compile this module:
498-
exec("a3 = ArgumentsProfile(func, *(), b=({'a': 'b'},),"
499-
"c=set([1, (3, 4)]), a=7,"
500-
"meow=[1, 2, {1: [1, 2]}])")
492+
a3 = ArgumentsProfile(func, *(), b=({'a': 'b'},),
493+
c=set([1, (3, 4)]), a=7,
494+
meow=[1, 2, {1: [1, 2]}])
501495
assert a3.args == (7, ({'a': 'b'},), set([1, (3, 4)]))
502496
assert a3.kwargs == OrderedDict(
503497
(('meow', [1, 2, {1: [1, 2]}]),)

test_python_toolbox/test_context_management/test_abstractness.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ def test_abstractness():
1717
'''
1818
A non-abstract-overriding `ContextManager` subclass can't be instantiated.
1919
'''
20-
if sys.version_info[:2] <= (2, 5):
21-
raise nose.SkipTest("Python 2.5 doesn't enforce abstractness.")
2220

2321
class EmptyContextManager(ContextManager):
2422
pass

test_python_toolbox/test_cute_iter_tools/test_is_iterable.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55

66
import nose.tools
77

8-
from python_toolbox.infinity import infinity
98
from python_toolbox import cute_iter_tools
109
from python_toolbox.cute_iter_tools import is_iterable
1110

1211

12+
infinity = float('inf')
13+
14+
1315
def test():
1416
'''Test basic workings of `is_iterable`.'''
1517

test_python_toolbox/test_cute_iter_tools/test_shorten.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55

66
import nose.tools
77

8-
from python_toolbox.infinity import infinity
98
from python_toolbox import cute_iter_tools
109
from python_toolbox.cute_iter_tools import shorten
1110

1211

12+
infinity = float('inf')
13+
14+
1315
def test():
1416
'''Test basic workings of `shorten`.'''
1517
my_range = [0, 1, 2, 3, 4]

test_python_toolbox/test_sequence_tools/test_parse_slice.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
'''Testing module for `sequence_tools.parse_slice`.'''
55

66
from python_toolbox import math_tools
7-
from python_toolbox.infinity import infinity
87

98
from python_toolbox.sequence_tools import parse_slice
109

1110

11+
infinity = float('inf')
12+
13+
1214
def test():
1315
'''Test the basic workings of `parse_slice`.'''
1416

test_python_toolbox/test_sleek_reffing/test_cute_sleek_value_dict/test_generic_dict_tests.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,6 @@ def test_empty_presized_dict_in_freelist(self):
655655
def test_container_iterator(self):
656656
# Bug #3680: tp_traverse was not implemented for dictiter objects
657657

658-
if sys.version_info[:2] == (2, 5):
659-
raise nose.SkipTest('Bug 3680 will not be fixed in Python 2.5')
660-
661658
class C(object):
662659
pass
663660
iterators = (CuteSleekValueDict.iteritems,

0 commit comments

Comments
 (0)