Skip to content

Commit 72b4949

Browse files
committed
test multi auto-import
1 parent 15ca8ff commit 72b4949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_edit(self) -> None:
3131
msg="_ must exclude linesep",
3232
)
3333
self.assertEqual(
34-
list(edit(lines(), "str(int(math.pow(10, len(_))))")),
35-
["1000\n", "1000\n", "1000000"],
34+
list(edit(lines(), "re.sub('[0]', 'O', str(int(math.pow(10, len(_)))))")),
35+
["1OOO\n", "1OOO\n", "1OOOOOO"],
3636
msg="modules should be auto-imported",
3737
)

0 commit comments

Comments
 (0)