Fix flake8 errors in tests
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
ae7d2ee845
commit
78133500cb
@ -1,6 +1,6 @@
|
||||
#
|
||||
|
||||
|
||||
import hy
|
||||
from .native_tests.math import *
|
||||
from .native_tests.language import *
|
||||
import hy # noqa
|
||||
from .native_tests.math import * # noqa
|
||||
from .native_tests.language import * # noqa
|
||||
|
@ -4,7 +4,7 @@ import ast
|
||||
|
||||
def test_basics():
|
||||
"Make sure the basics of the importer work"
|
||||
module = import_file_to_module("basic",
|
||||
import_file_to_module("basic",
|
||||
"tests/resources/importer/basic.hy")
|
||||
|
||||
|
||||
|
@ -32,13 +32,13 @@ from hy.lex import tokenize
|
||||
def test_lex_exception():
|
||||
""" Ensure tokenize throws a fit on a partial input """
|
||||
try:
|
||||
objs = tokenize("(foo")
|
||||
tokenize("(foo")
|
||||
assert True is False
|
||||
except LexException:
|
||||
pass
|
||||
|
||||
try:
|
||||
objs = tokenize("&foo&")
|
||||
tokenize("&foo&")
|
||||
assert True is False
|
||||
except LexException:
|
||||
pass
|
||||
|
@ -2,9 +2,7 @@
|
||||
from hy.macros import macro, process
|
||||
from hy.lex import tokenize
|
||||
|
||||
from hy.models.expression import HyExpression
|
||||
from hy.models.string import HyString
|
||||
from hy.models.symbol import HySymbol
|
||||
from hy.models.list import HyList
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user