Skip to content

Commit

Permalink
fix for python2
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tron committed Jan 25, 2019
1 parent 0fda667 commit 155efd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import logging
import time
from os import environ
from six import string_types
from six import string_types, text_type
import unittest
import binascii
from cryptography import x509
Expand All @@ -43,6 +43,8 @@
TPPURL = environ.get('TPPURL')
CLOUDURL = environ.get('CLOUDURL')
RANDOM_DOMAIN = environ.get("RANDOM_DOMAIN")
if not isinstance(RANDOM_DOMAIN, text_type):
RANDOM_DOMAIN = RANDOM_DOMAIN.decode()


def randomword(length):
Expand Down

0 comments on commit 155efd1

Please sign in to comment.