mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-05 21:24:45 +00:00
Merge pull request #245 from cjmayo/future_str
Import str as str_text from builtins when supporting transition
This commit is contained in:
commit
4b3d91ffea
1 changed files with 3 additions and 3 deletions
|
|
@ -21,15 +21,15 @@ Test config parsing.
|
|||
import unittest
|
||||
import os
|
||||
import linkcheck.configuration
|
||||
from builtins import str
|
||||
from builtins import str as str_text
|
||||
|
||||
|
||||
def get_file (filename=None):
|
||||
"""Get file name located within 'data' directory."""
|
||||
directory = os.path.join("tests", "configuration", "data")
|
||||
if filename:
|
||||
return str(os.path.join(directory, filename))
|
||||
return str(directory)
|
||||
return str_text(os.path.join(directory, filename))
|
||||
return str_text(directory)
|
||||
|
||||
|
||||
class TestConfig (unittest.TestCase):
|
||||
|
|
|
|||
Loading…
Reference in a new issue