Skip to content

Commit d4f3e47

Browse files
authored
Merge pull request #73 from JFoederer/master
Update test suite to match latest Robot and Python versions
2 parents d038453 + 46321af commit d4f3e47

7 files changed

+15
-13
lines changed

Diff for: test/atest/argument_spec_invalid.robot

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ Too few arguments when using varargs
2929
Required Defaults And Varargs
3030

3131
Using arguments when only kwargs accepted
32-
[Documentation] FAIL Keyword 'Remote.Kwargs' expected 0 non-keyword arguments, got 4.
32+
[Documentation] FAIL Keyword 'Remote.Kwargs' expected 0 non-named arguments, got 4.
3333
Kwargs normal args are no-no
3434

3535
Too few arguments when kwargs accepted
36-
[Documentation] FAIL Keyword 'Remote.Args And Kwargs' expected 1 to 2 non-keyword arguments, got 0.
36+
[Documentation] FAIL Keyword 'Remote.Args And Kwargs' expected 1 to 2 non-named arguments, got 0.
3737
Args and kwargs
3838

3939
Too many arguments when kwargs accepted
40-
[Documentation] FAIL Keyword 'Remote.Args And Kwargs' expected 1 to 2 non-keyword arguments, got 7.
40+
[Documentation] FAIL Keyword 'Remote.Args And Kwargs' expected 1 to 2 non-named arguments, got 7.
4141
Args and kwargs we do not accept this many args
4242

4343
Missing argument when using kwargs

Diff for: test/atest/argument_types.robot

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ List-like
5757
() []
5858
('Hei', u'\\xe4iti', 63, (), None) ['Hei', u'\\xe4iti', 63, [], '']
5959
set(['hello']) ['hello']
60-
xrange(5) [0, 1, 2, 3, 4]
60+
range(5) [0, 1, 2, 3, 4]
6161

6262
Dictionary
6363
{}

Diff for: test/atest/basic_communication.robot

+4-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ Use multiple times
3232
... LOG 1.1.2 Round 1
3333
... LOG 1.2.2 Round 2
3434
... LOG 1.${COUNT}.2 Round ${COUNT}
35-
: FOR ${i} IN RANGE ${COUNT}
36-
\ Passing
37-
\ Logging Round ${i + 1}
35+
FOR ${i} IN RANGE ${COUNT}
36+
Passing
37+
Logging Round ${i + 1}
38+
END
3839

3940
Private methods should ne ignored
4041
[Documentation] FAIL No keyword with name 'Private Method' found.

Diff for: test/atest/kwargs.robot

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ Non-string kwargs
6161
Binary kwargs
6262
${tuple} = Evaluate ('\x02',)
6363
${result} = Kwargs a=\x00 b=\x01 c=${tuple}
64-
Should Match ${result} a:\x00, b:\x01, c:[*'\\x02'] (list)
64+
Should be equal ${result} a:\x00, b:\x01, c:[b'\\x02'] (list)

Diff for: test/atest/logging.robot

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Multiple messages with different levels
3838
[Documentation]
3939
... LOG 1:1 INFO Info message
4040
... LOG 1:2 DEBUG Debug message
41-
... LOG 1:3 INFO Second info\n this time with two lines
41+
... LOG 1:3 INFO Second info\nthis time with two lines
4242
... LOG 1:4 INFO Third info
4343
... LOG 1:5 WARN Warning
4444
Multiple Messages With Different Levels

Diff for: test/atest/module.robot

+4-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ Use multiple times
3232
... LOG 1.1.2 Round 1
3333
... LOG 1.2.2 Round 2
3434
... LOG 1.${COUNT}.2 Round ${COUNT}
35-
: FOR ${i} IN RANGE ${COUNT}
36-
\ Passing
37-
\ Logging Round ${i + 1}
35+
FOR ${i} IN RANGE ${COUNT}
36+
Passing
37+
Logging Round ${i + 1}
38+
END
3839

3940
Private methods should ne ignored
4041
[Documentation] FAIL No keyword with name 'Private Method' found.

Diff for: test/atest/returning.robot

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Dictionary with binary keys is not supported
9696
{u'\\x00': 'value'}
9797

9898
Dictionary with binary values
99-
{'0': u'\\x00', '1': b'\\x01'}
99+
{'0': u'\\x00', '1': b'\\xff'}
100100

101101
Dictionary with non-string keys and values
102102
[Documentation] XML-RPC supports only strings as keys so must convert them

0 commit comments

Comments
 (0)