From ef36871e685a542aa28a1c75e44d92320c4cd397 Mon Sep 17 00:00:00 2001 From: mikelietz Date: Sun, 29 Jul 2012 14:21:42 -0400 Subject: [PATCH 1/2] Call 'a' global method, not 'an' global method. Python3 had it right. --- python2/koans/about_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python2/koans/about_methods.py b/python2/koans/about_methods.py index 7279d8c2a..39da18065 100644 --- a/python2/koans/about_methods.py +++ b/python2/koans/about_methods.py @@ -13,7 +13,7 @@ def my_global_function(a, b): class AboutMethods(Koan): - def test_calling_an_global_function(self): + def test_calling_a_global_function(self): self.assertEqual(__, my_global_function(2, 3)) # NOTE: Wrong number of arguments is not a SYNTAX error, but a From 20811df0e6e12d04c51c0a800fb0729463c8a91e Mon Sep 17 00:00:00 2001 From: mikelietz Date: Sun, 29 Jul 2012 14:43:55 -0400 Subject: [PATCH 2/2] A one line method should be one line, right? Python3 had it right. --- python2/koans/about_methods.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python2/koans/about_methods.py b/python2/koans/about_methods.py index 39da18065..173cd0ce3 100644 --- a/python2/koans/about_methods.py +++ b/python2/koans/about_methods.py @@ -113,8 +113,7 @@ def test_pass_does_nothing_at_all(self): # ------------------------------------------------------------------ - def one_line_method(self): - return 'Madagascar' + def one_line_method(self): return 'Madagascar' def test_no_indentation_required_for_one_line_statement_bodies(self): self.assertEqual(__, self.one_line_method())