Skip to content

Commit 7fae55f

Browse files
committed
corrected and added comments
1 parent f5e83c2 commit 7fae55f

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

Lib/test/test_named_expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def test_named_expression_invalid_rebinding_comprehension_inner_loop(self):
166166
with self.assertRaisesRegex(SyntaxError, msg):
167167
exec(f"lambda: {code}", {}) # Function scope
168168

169-
@unittest.expectedFailure # TODO RustPythonskip
169+
@unittest.expectedFailure # TODO RustPython
170170
def test_named_expression_invalid_comprehension_iterable_expression(self):
171171
cases = [
172172
("Top level", "[i for i in (i := range(5))]"),

pdc.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
1+
2+
# Pre Delivery Check - or PDC for short - runs all build and check steps.
3+
# The intension is to run all checks before delivering (or raising a PR or commiting or what ever you want to use it for).
4+
#
5+
# PDC executes all of the configured actions in the given order and reports which of them failed,
6+
# without stopping in case of an fail.
7+
# The actions in the given version are the RustPython CI steps plus a debug build in advance.
8+
# So you can run all of the checks in advance with one command.
9+
#
10+
# If you want to customize it or adapt the checks, just add or remove it from/ to the ACTIONS
11+
12+
13+
ACTIONS=("cargo build" "cargo build --release" "cargo fmt --all" "cargo clippy --all -- -Dwarnings" "cargo test --all" "cargo run --release -- -m test -v" "cd tests" "pytest" "cd ..")
14+
15+
# Usually, there should be no need to adapt the remaining file, when adding or removing actions.
16+
17+
118
RUSTPYTHONPATH=Lib
219
export RUSTPYTHONPATH
320

4-
ACTIONS=("cargo build" "cargo build --release" "cargo fmt --all" "cargo clippy --all -- -Dwarnings" "cargo test --all" "cargo run --release -- -m test -v" "cd tests" "pytest" "cd ..")
521
ACT_RES=0
622
FAILS=()
723

0 commit comments

Comments
 (0)