Skip to content

Commit

Permalink
isort tests, fix 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
watermarkhu committed Mar 26, 2024
1 parent 930e335 commit 3ae4144
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 12 deletions.
2 changes: 2 additions & 0 deletions test/regression/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import logging
import os
import platform
Expand Down
4 changes: 3 additions & 1 deletion test/regression/test_matlab.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from __future__ import annotations

import logging
import pytest
from pathlib import Path

import pytest
from textmate_grammar.grammars import matlab
from textmate_grammar.language import LanguageParser

Expand Down
2 changes: 1 addition & 1 deletion test/unit/matlab/test_anonymous_function.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from . import parser
from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser

test_vector = {}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/matlab/test_comment.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser


test_vector = {}

# inline comment
Expand Down
1 change: 1 addition & 0 deletions test/unit/matlab/test_constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser

Expand Down
2 changes: 1 addition & 1 deletion test/unit/matlab/test_control_statement.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser


test_vector = {}

test_vector["break"] = {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/matlab/test_global_persistent.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser


test_vector = {}

test_vector[" global variable"] = {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/matlab/test_imports.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser


test_vector = {}

test_vector["import module.submodule.class"] = { # import module
Expand Down
2 changes: 1 addition & 1 deletion test/unit/matlab/test_line_continuation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser


test_vector = {}

test_vector["... Some comment"] = {
Expand Down
1 change: 1 addition & 0 deletions test/unit/matlab/test_numbers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser

Expand Down
2 changes: 1 addition & 1 deletion test/unit/matlab/test_operators.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser


test_vector = {}

# function handle
Expand Down
2 changes: 1 addition & 1 deletion test/unit/matlab/test_punctuation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser


test_vector = {}

# dot index
Expand Down
2 changes: 1 addition & 1 deletion test/unit/matlab/test_readwrite_operations.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser


test_vector = {}

# simple
Expand Down
2 changes: 1 addition & 1 deletion test/unit/matlab/test_string.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser


test_vector = {}

# Singel quoted
Expand Down
2 changes: 1 addition & 1 deletion test/unit/matlab/test_transpose.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from ...unit import MSG_NO_MATCH, MSG_NOT_PARSED
from . import parser


conjugate_transpose_test_vector = {}

# variable
Expand Down

0 comments on commit 3ae4144

Please sign in to comment.