From 015e51723633355e3e8e99f2e0c657ebcb7391b2 Mon Sep 17 00:00:00 2001 From: Ivor Wanders Date: Thu, 31 Dec 2015 10:02:47 +0100 Subject: [PATCH] Updates regression test for nsecs alignment. The alignment of the nsecs field was changed in fbc164dd5290a4cf9a2e0635bc1944cc6c1d04c1 and merged with pull request ros/genpy#45, this caused the regression test for the timestamp field to fail. This commit updates the comparison value of the regression tests to reflect the new alignment. --- test/test_genpy_message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_genpy_message.py b/test/test_genpy_message.py index 89002a5..538df7a 100644 --- a/test/test_genpy_message.py +++ b/test/test_genpy_message.py @@ -562,10 +562,10 @@ def __init__(self, t, d): self.d = d self.assertEquals("""t: secs: 987 - nsecs: 654 + nsecs: 654 d: secs: 123 - nsecs: 456""", strify_message(M5(Time(987, 654), Duration(123, 456)))) + nsecs: 456""", strify_message(M5(Time(987, 654), Duration(123, 456)))) # test final clause of strify -- str anything that isn't recognized if sys.hexversion > 0x03000000: # Python3