Skip to content

Commit

Permalink
Merge pull request #7937 from saru95/patch--1
Browse files Browse the repository at this point in the history
ceph_daemon.py: Resolved ImportError to work with python3

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
  • Loading branch information
jdurgin committed Mar 4, 2016
2 parents 28cc0ca + 9e47cef commit 56ca573
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/pybind/test_ceph_daemon.py
Expand Up @@ -11,12 +11,15 @@
Foundation. See file COPYING.
"""

from StringIO import StringIO

from unittest import TestCase

from ceph_daemon import DaemonWatcher

try:
from StringIO import StringIO
except ImportError:
from io import StringIO


class TestDaemonWatcher(TestCase):
def test_format(self):
Expand Down

0 comments on commit 56ca573

Please sign in to comment.