Skip to content

Commit 669bcd1

Browse files
committed
Set literals are available in python 2.7
1 parent 7a978d0 commit 669bcd1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

python3/koans/about_sets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def test_empty_sets_have_different_syntax_to_populated_sets(self):
1616
self.assertEqual(__, set())
1717

1818
def test_dictionaries_and_sets_use_same_curly_braces(self):
19-
# Note: Sets have only started using braces since Python 3
19+
# Note: Literal sets using braces were introduced in python 3.
20+
# They were also backported to python 2.7.
2021

2122
self.assertEqual(__, {1, 2, 3}.__class__)
2223
self.assertEqual(__, {'one': 1, 'two': 2}.__class__)

0 commit comments

Comments
 (0)