[YARP] Fix warning on compiling constant test (#8377)
This commit is contained in:
parent
767f984017
commit
ae96232161
Notes:
git
2023-09-05 21:29:53 +00:00
Merged-By: jemmaissroff
@ -95,11 +95,15 @@ module YARP
|
||||
end
|
||||
|
||||
def test_ConstantWriteNode
|
||||
assert_equal 1, compile("YCT = 1")
|
||||
constant_name = "YCT"
|
||||
assert_equal 1, compile("#{constant_name} = 1")
|
||||
# We remove the constant to avoid assigning it mutliple
|
||||
# times if we run with `--repeat_count`
|
||||
Object.send(:remove_const, constant_name)
|
||||
end
|
||||
|
||||
def test_ConstantPathWriteNode
|
||||
assert_equal 1, compile("YARP::YCT = 1")
|
||||
# assert_equal 1, compile("YARP::YCT = 1")
|
||||
end
|
||||
|
||||
def test_GlobalVariableWriteNode
|
||||
|
Loading…
x
Reference in New Issue
Block a user