mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
Use Python 2.6 style dictionary comprehension for building test dimensions
This commit is contained in:
committed by
Henry Robinson
parent
ef9a5c2d0e
commit
45c1cbe1fd
@@ -78,7 +78,7 @@ class TestVector(object):
|
||||
# Vector -> Call to get specific values
|
||||
class TestMatrix(object):
|
||||
def __init__(self, *args):
|
||||
self.dimensions = dict({arg.name for arg in args})
|
||||
self.dimensions = dict((arg.name, arg) for arg in args)
|
||||
self.constraint_list = list()
|
||||
|
||||
def add_dimension(self, vector_value_list):
|
||||
|
||||
Reference in New Issue
Block a user