We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11865dc commit b740db3Copy full SHA for b740db3
1 file changed
ietf/utils/test_utils.py
@@ -38,7 +38,7 @@
38
from django.db import connection
39
from django.test import TestCase
40
from django.test.client import Client
41
-import ietf
+import ietf.settings
42
from django.conf import settings
43
from datetime import datetime
44
import urllib2 as urllib
@@ -117,7 +117,10 @@ def tearDown(self):
117
self.tearDownRealDatabase()
118
119
def doTestUrls(self, test_filename):
120
- filename = os.path.dirname(os.path.abspath(test_filename))+"/testurl.list"
+ if test_filename.endswith(".list"):
121
+ filename = test_filename
122
+ else:
123
+ filename = os.path.dirname(os.path.abspath(test_filename))+"/testurl.list"
124
print " Reading "+filename
125
tuples = read_testurls(filename)
126
failures = 0
0 commit comments