fix sys.path dance part #2 and scheduler tests for py3
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
|
||||
from .test_http import *
|
||||
from .test_contenttype import *
|
||||
@@ -22,8 +21,8 @@ from .test_compileapp import *
|
||||
from .test_appadmin import *
|
||||
from .test_web import *
|
||||
from .test_sqlhtml import *
|
||||
from .test_scheduler import *
|
||||
|
||||
if sys.version[:3] == '2.7':
|
||||
from .test_is_url import *
|
||||
from .test_scheduler import *
|
||||
from .test_old_doctests import *
|
||||
|
||||
@@ -4,22 +4,21 @@
|
||||
""" Unit tests for old doctests in utf8.py, html.py, markmin2html.py.
|
||||
Don't abuse doctests, web2py > 2.4.5 will accept only unittests
|
||||
"""
|
||||
import sys
|
||||
import os
|
||||
|
||||
import doctest
|
||||
import unittest
|
||||
|
||||
def load_tests(loader, tests, ignore):
|
||||
|
||||
tests.addTests(
|
||||
doctest.DocTestSuite('html')
|
||||
doctest.DocTestSuite('gluon.html')
|
||||
)
|
||||
tests.addTests(
|
||||
doctest.DocTestSuite('utf8')
|
||||
doctest.DocTestSuite('gluon.utf8')
|
||||
)
|
||||
|
||||
tests.addTests(
|
||||
doctest.DocTestSuite('contrib.markmin.markmin2html',
|
||||
doctest.DocTestSuite('gluon.contrib.markmin.markmin2html',
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user