@@ -452,7 +452,7 @@ def test__split_returns_list_from_string(self):
452
452
ret = hubblestack .extmods .fdg .process ._split ("foo bar" , " " , True )
453
453
assert expected_ret == ret
454
454
# regex
455
- ret = hubblestack .extmods .fdg .process ._split ("foo bar" , "\s+" , True )
455
+ ret = hubblestack .extmods .fdg .process ._split ("foo bar" , r "\s+" , True )
456
456
assert expected_ret == ret
457
457
# invalid ``sep``
458
458
expected_ret = ['foo bar' ]
@@ -487,7 +487,7 @@ def test_split_returns_list_from_string(self):
487
487
expected_ret = ['a' , 'b' , 'c' , 'd' ]
488
488
# valid regex
489
489
status , ret = hubblestack .extmods .fdg .process .split (
490
- phrase = "a1b2c3d" , sep = "\d+" , regex = True )
490
+ phrase = "a1b2c3d" , sep = r "\d+" , regex = True )
491
491
assert status is True
492
492
assert expected_ret == ret
493
493
# simple sep
@@ -505,7 +505,7 @@ def test_split_returns_list_from_string(self):
505
505
# invalid regex
506
506
expected_ret = ['a1b2c3d' ]
507
507
status , ret = hubblestack .extmods .fdg .process .split (
508
- phrase = "a1b2{}" , sep = "\d+" , regex = False , chained = 'c3d' )
508
+ phrase = "a1b2{}" , sep = r "\d+" , regex = False , chained = 'c3d' )
509
509
assert status is False
510
510
assert expected_ret == ret
511
511
0 commit comments