Skip to content

Commit

Permalink
fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Apr 10, 2024
1 parent 30e5283 commit 5e4e650
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/ast/test_pre_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from vyper.ast.pre_parser import pre_parse, validate_version_pragma
from vyper.compiler.phases import CompilerData
from vyper.compiler.settings import OptimizationLevel, Settings
import vyper.compiler.settings as compiler_settings

Check notice

Code scanning / CodeQL

Module is imported with 'import' and 'import from' Note test

Module 'vyper.compiler.settings' is imported with both 'import' and 'import from'.
from vyper.exceptions import StructureException, VersionException

SRC_LINE = (1, 0) # Dummy source line
Expand Down Expand Up @@ -185,8 +186,9 @@ def test_parse_pragmas(code, pre_parse_settings, compiler_data_settings, mock_ve
# None is sentinel here meaning that nothing changed
compiler_data_settings = pre_parse_settings

# cannot be set via pragma, don't check
# defaults
compiler_data_settings.experimental_codegen = False
compiler_data_settings.enable_decimals = compiler_settings.DEFAULT_ENABLE_DECIMALS

assert compiler_data.settings == compiler_data_settings

Expand Down

0 comments on commit 5e4e650

Please sign in to comment.