Skip to content

Commit 8fb44f1

Browse files
committed
Add unicode tests
1 parent ad64aa0 commit 8fb44f1

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ test:
99
$(PYTHON) -m memory_profiler test/test_global.py
1010
$(PYTHON) -m memory_profiler test/test_precision_command_line.py
1111
$(PYTHON) -m memory_profiler test/test_gen.py
12+
$(PYTHON) -m memory_profiler test/test_unicode.py
1213
$(PYTHON) test/test_import.py
1314
$(PYTHON) test/test_memory_usage.py
1415
$(PYTHON) test/test_precision_import.py

test/test_unicode.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# coding: utf-8
2+
3+
import time
4+
5+
@profile
6+
def test_unicode():
7+
# test when unicode is present
8+
eval("β = 0")
9+
return
10+
11+
if __name__ == '__main__':
12+
# run only for Python 3
13+
import sys
14+
if sys.version_info >= (3, 0):
15+
test_unicode()

0 commit comments

Comments
 (0)