@@ -291,7 +291,7 @@ def assertCorrectLabels(self, actual_labels, expected_labels,
291291 if include_opencensus :
292292 opencensus_tag = actual_labels .pop (stackdriver .OPENCENSUS_TASK )
293293 self .assertIsNotNone (opencensus_tag )
294- self .assertIn ("py@ " , opencensus_tag )
294+ self .assertIn ("py- " , opencensus_tag )
295295 self .assertDictEqual (actual_labels , expected_labels )
296296
297297 @mock .patch ('opencensus.stats.exporters.stackdriver_exporter.'
@@ -1093,11 +1093,11 @@ def test_set_metric_labels_with_None(self):
10931093 'version' , 'machine' ,
10941094 'processor' ))
10951095 def test_get_task_value_with_hostname (self , mock_uname , mock_pid ):
1096- self .assertEqual (stackdriver .get_task_value (), "py@12345node " )
1096+ self .assertEqual (stackdriver .get_task_value (), "py-12345@node " )
10971097
10981098 @mock .patch ('os.getpid' , return_value = 12345 )
1099- @mock .patch ('platform.uname' , return_value = ('system' , None , 'release' ,
1099+ @mock .patch ('platform.uname' , return_value = ('system' , '' , 'release' ,
11001100 'version' , 'machine' ,
11011101 'processor' ))
11021102 def test_get_task_value_without_hostname (self , mock_uname , mock_pid ):
1103- self .assertEqual (stackdriver .get_task_value (), "py@12345localhost " )
1103+ self .assertEqual (stackdriver .get_task_value (), "py-12345@localhost " )
0 commit comments