Permalink
Browse files

applies pep8

  • Loading branch information...
sdpython committed Apr 16, 2016
1 parent beaa8ec commit 1a73417240a059b72eb0100b694f1163bd42e88b
@@ -6,7 +6,6 @@
import sys
import os
import unittest
from docutils.parsers.rst import directives
try:
import src
@@ -9,33 +9,34 @@
try:
import src
import pyquickhelper
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..")))
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import src
import pyquickhelper
try:
import pyquickhelper
import src
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
"..")))
if path not in sys.path:
sys.path.append(path)
import pyquickhelper
import src
from pyquickhelper.loghelper import fLOG
@@ -50,13 +51,6 @@ def test_magic_snap(self):
self._testMethodName,
OutputPrint=__name__ == "__main__")
if sys.version_info[0] == 2:
# the module returns the following error
# ENCODING ERROR WITH Python 2.7, will not fix it
return
else:
password = "unittest" * 2
this = os.path.abspath(__file__)
mg = MagicScratch()
cmd = "-W 500"
@@ -67,6 +67,7 @@ def test_flake8_test(self):
"'skip_' imported but unused",
"'skip__' imported but unused",
"'skip___' imported but unused",
"'pyquickhelper' imported",
],
extended=[("fLOG", _extended_refactoring)],
max_line_length=320)
@@ -5,7 +5,6 @@
import sys
import os
import unittest
import warnings
try:

0 comments on commit 1a73417

Please sign in to comment.