Skip to content

Commit 4a5bbab

Browse files
author
Shayne Hodge
committed
Update to pass properly on Python 3.6.
1 parent d2d6af2 commit 4a5bbab

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

python3/koans/about_class_attributes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ def test_classes_are_objects_too(self):
2323

2424
def test_objects_have_methods(self):
2525
fido = self.Dog()
26-
self.assertEqual(25, len(dir(fido)))
26+
self.assertEqual(26, len(dir(fido)))
2727

2828
def test_classes_have_methods(self):
29-
self.assertEqual(25, len(dir(self.Dog)))
29+
self.assertEqual(26, len(dir(self.Dog)))
3030

3131
def test_creating_objects_without_defining_a_class(self):
3232
singularity = object()
33-
self.assertEqual(22, len(dir(singularity)))
33+
self.assertEqual(23, len(dir(singularity)))
3434

3535
def test_defining_attributes_on_individual_objects(self):
3636
fido = self.Dog()

python3/koans/about_method_bindings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ def test_methods_are_also_bound_to_a_function(self):
2525

2626
def test_functions_have_attributes(self):
2727
obj = Class()
28-
self.assertEqual(34, len(dir(function)))
28+
self.assertEqual(35, len(dir(function)))
2929
self.assertEqual(True, dir(function) == dir(obj.method.__func__))
3030

3131
def test_methods_have_different_attributes(self):
3232
obj = Class()
33-
self.assertEqual(26, len(dir(obj.method)))
33+
self.assertEqual(27, len(dir(obj.method)))
3434

3535
def test_setting_attributes_on_an_unbound_function(self):
3636
function.cherries = 3

0 commit comments

Comments
 (0)