Skip to content

Commit e19e01b

Browse files
committed
Added test that fails without newint protection
1 parent 47f7d16 commit e19e01b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

future/tests/test_builtins.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def __dir__(self):
639639
# raise IndexError
640640
# except:
641641
# self.assertEqual(len(dir(sys.exc_info()[2])), 4)
642-
#
642+
#
643643
# # test that object has a __dir__()
644644
# self.assertEqual(sorted([].__dir__()), dir([]))
645645

@@ -1271,9 +1271,9 @@ def test_pow(self):
12711271
self.assertAlmostEqual(pow(-2.,2), 4.)
12721272
self.assertAlmostEqual(pow(-2.,3), -8.)
12731273

1274-
for x in 2, 2.0:
1275-
for y in 10, 10.0:
1276-
for z in 1000, 1000.0:
1274+
for x in 2, int(2), 2.0:
1275+
for y in 10, int(10), 10.0:
1276+
for z in 1000, int(1000), 1000.0:
12771277
if isinstance(x, float) or \
12781278
isinstance(y, float) or \
12791279
isinstance(z, float):

0 commit comments

Comments
 (0)