File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 15
15
import json
16
16
import os
17
17
import platform
18
- import re
19
18
import shutil
20
- import signal
21
19
import subprocess
22
20
import sys
23
- from typing import ClassVar , List , Optional
21
+ from typing import ClassVar , List
24
22
25
23
26
24
@dataclass
@@ -523,7 +521,7 @@ def log(msg):
523
521
env_vars += '\n "RUST_BACKTRACE=0",'
524
522
525
523
# Use /tmp as the test temporary directory
526
- env_vars += f '\n "RUST_TEST_TMPDIR=/tmp",'
524
+ env_vars += '\n "RUST_TEST_TMPDIR=/tmp",'
527
525
528
526
cml .write (
529
527
self .CML_TEMPLATE .format (env_vars = env_vars , exe_name = exe_name )
Original file line number Diff line number Diff line change 40
40
41
41
This message can be suppressed by setting `RUST_IGNORE_OLD_PYTHON=1`
42
42
""" .format (major , minor ))
43
- warnings .warn (msg )
43
+ warnings .warn (msg , stacklevel = 1 )
44
44
45
45
rust_dir = os .path .dirname (os .path .abspath (__file__ ))
46
46
# For the import below, have Python search in src/bootstrap first.
You can’t perform that action at this time.
0 commit comments