Skip to content

Commit d5899a0

Browse files
committed
Made some updates to account for Python 3 language changes
1 parent 9b45103 commit d5899a0

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

python3/koans/a_normal_folder/a_module.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

python3/koans/about_methods.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ def test_calling_functions_with_wrong_number_of_arguments(self):
2222
except TypeError as exception:
2323
msg = exception.args[0]
2424

25+
# Note, the text comparison works for Python 3.2
26+
# It has changed in the past and may change in the future
2527
self.assertRegexpMatches(msg,
2628
r'my_global_function\(\) missing 2 required positional arguments')
2729

python3/koans/about_packages.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ def test_subfolders_become_modules_if_they_have_an_init_module(self):
3737

3838
self.assertEqual(__, an_attribute)
3939

40-
def test_subfolders_without_an_init_module_are_not_part_of_the_package(self):
41-
# Import ./a_normal_folder/
42-
with self.assertRaises(___): from a_normal_folder import Duck
43-
4440
# ------------------------------------------------------------------
4541

4642
def test_use_absolute_imports_to_import_upper_level_modules(self):

python3/koans/about_regex.py

100755100644
File mode changed.

0 commit comments

Comments
 (0)