File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,7 @@ def src(self):
47
47
@src .setter
48
48
def src (self , value ):
49
49
self ._src = value
50
- self .srcCharCode = (
51
- tuple (ord (c ) for c in self .src ) if self .src is not None else ()
52
- )
50
+ self .srcCharCode = tuple (ord (c ) for c in self .src )
53
51
54
52
55
53
# The first positional arg is always a subtype of `StateBase`. Other
Original file line number Diff line number Diff line change 1
1
from markdown_it import MarkdownIt
2
2
from markdown_it .token import Token
3
- from markdown_it .rules_core import StateCore
4
3
5
4
6
5
def test_get_rules ():
@@ -254,18 +253,6 @@ def test_emptyStr():
254
253
]
255
254
256
255
257
- def test_noneState ():
258
- md = MarkdownIt ()
259
- state = StateCore (None , md , {}, [])
260
-
261
- # Remove normalizing rule
262
- rules = md .core .ruler .get_active_rules ()
263
- md .core .ruler .enableOnly (rules [rules .index ("inline" ) :])
264
-
265
- # Check that we can process None str with empty env and block_tokens
266
- md .core .process (state )
267
-
268
-
269
256
def test_empty_env ():
270
257
"""Test that an empty `env` is mutated, not copied and mutated."""
271
258
md = MarkdownIt ()
You can’t perform that action at this time.
0 commit comments