File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515import json
1616import os
1717import platform
18- import re
1918import shutil
20- import signal
2119import subprocess
2220import sys
23- from typing import ClassVar , List , Optional
21+ from typing import ClassVar , List
2422
2523
2624@dataclass
@@ -523,7 +521,7 @@ def log(msg):
523521 env_vars += '\n "RUST_BACKTRACE=0",'
524522
525523 # Use /tmp as the test temporary directory
526- env_vars += f '\n "RUST_TEST_TMPDIR=/tmp",'
524+ env_vars += '\n "RUST_TEST_TMPDIR=/tmp",'
527525
528526 cml .write (
529527 self .CML_TEMPLATE .format (env_vars = env_vars , exe_name = exe_name )
Original file line number Diff line number Diff line change 4040
4141 This message can be suppressed by setting `RUST_IGNORE_OLD_PYTHON=1`
4242 """ .format (major , minor ))
43- warnings .warn (msg )
43+ warnings .warn (msg , stacklevel = 1 )
4444
4545 rust_dir = os .path .dirname (os .path .abspath (__file__ ))
4646 # For the import below, have Python search in src/bootstrap first.
You can’t perform that action at this time.
0 commit comments