Skip to content

Commit 8001d4c

Browse files
committed
Test minor enhancement
1 parent 86c2fc5 commit 8001d4c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_lazy.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3+
from __future__ import print_function
34
import unittest
45
from creational.lazy_evaluation import Person
56

@@ -17,11 +18,11 @@ def test_relatives_not_in_properties(self):
1718
self.assertNotIn('relatives', self.John.__dict__)
1819

1920
def test_extended_properties(self):
20-
print("John's relatives: {0}".format(self.John.relatives))
21+
print(u"John's relatives: {0}".format(self.John.relatives))
2122
self.assertDictEqual({'name': 'John', 'occupation': 'Coder',
2223
'relatives': 'Many relatives.'},
2324
self.John.__dict__)
2425

2526
def test_relatives_after_access(self):
26-
print("John's relatives: {0}".format(self.John.relatives))
27+
print(u"John's relatives: {0}".format(self.John.relatives))
2728
self.assertIn('relatives', self.John.__dict__)

0 commit comments

Comments
 (0)