Skip to content

Commit

Permalink
fix python 3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nanorepublica committed Dec 2, 2015
1 parent 41750bc commit 089afcc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 6 additions & 2 deletions duedil/search/pro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
from .. import SearchResouceList

from collections import Sequence
from urllib import urlencode
import urlparse
try:
from urllib import urlencode
import urlparse
except ImportError:
from urllib.parse import urlencode
from urllib import parse as urlparse

class ProSearchResourceList(SearchResouceList):

Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ class PyTest(test_command):

def finalize_options(self):
test_command.finalize_options(self)
self.test_args = []
self.test_suite = True
if sys.version_info.major < 3:
self.test_args = []
self.test_suite = True

def run_tests(self):
# import here, cause outside the eggs aren't loaded
Expand All @@ -25,7 +26,7 @@ def run_tests(self):
sys.exit(errno)


version = '0.6.0'
version = '0.6.1'

setup(name='duedil',
version=version,
Expand Down

0 comments on commit 089afcc

Please sign in to comment.