Skip to content

Commit

Permalink
Fix test for py.test use
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Dec 6, 2013
1 parent c73e488 commit 6f2bfec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oct2py/ipython/tests/test_octavemagic.py
@@ -1,8 +1,8 @@
"""Tests for Octave magics extension."""

import unittest
from IPython.testing.globalipapp import get_ipython
import sys
from IPython.testing.globalipapp import get_ipython

try:
import oct2py
Expand All @@ -21,6 +21,7 @@ def setUpClass(cls):
It'd be safer to set it up for each test, but for now, I'm mimicking the
IPython team's logic.
'''
sys.stdin.encoding = 'utf-8' # needed for py.test
cls.ip = get_ipython()
# This is just to get a minimally modified version of the changes
# working
Expand Down

0 comments on commit 6f2bfec

Please sign in to comment.