Skip to content

python3: make json.dumps compatible with Python 2 #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

ligurio
Copy link
Member

@ligurio ligurio commented Jan 11, 2021

Python 3.4: Changed in version 3.4: Use (',', ': ') as default if
indent is not None. This behaviour broke a test box-py/call.test.py.

  1. https://docs.python.org/3/library/json.html#json.dump

Python 3.4: Changed in version 3.4: Use (',', ': ') as default if
indent is not None. This behaviour broke a test box-py/call.test.py.

1. https://docs.python.org/3/library/json.html#json.dump
Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Totktonada Totktonada merged commit 8847b8c into master Jan 11, 2021
@Totktonada Totktonada deleted the ligurio/support-python3-2 branch January 11, 2021 19:25
ligurio added a commit to tarantool/test-run that referenced this pull request Jan 16, 2021
Related issues:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
Totktonada added a commit to tarantool/test-run that referenced this pull request Jan 18, 2021
This update brings tarantool-python changes from releases 0.6.6[^1],
0.7.0 and 0.7.1 and the unreleased change [1] regarding unification of
the __str__ Response method across Python 2 and Python 3. Look at the
release notes [2] for the list of changes in the connector.

We need [1] to obtain the same test result on different Python versions
for tarantool's box-py/call.test.py test.

[^1]: Except replacing of yaml.load() with yaml.safe_load() in tests,
      which is already here.

[1]: tarantool/tarantool-python#186
[2]: https://github.com/tarantool/tarantool-python/releases

Part of #20
Part of tarantool/tarantool#5652
ligurio added a commit to tarantool/test-run that referenced this pull request Jan 18, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/tarantool that referenced this pull request Jan 18, 2021
ligurio added a commit to tarantool/tarantool that referenced this pull request Jan 19, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Follows up #5538
ligurio added a commit to tarantool/test-run that referenced this pull request Jan 19, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/tarantool that referenced this pull request Jan 19, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Follows up #5538
Totktonada added a commit to tarantool/test-run that referenced this pull request Jan 20, 2021
This update brings tarantool-python changes from releases 0.6.6[^1],
0.7.0 and 0.7.1 and the unreleased change [1] regarding unification of
the __str__ Response method across Python 2 and Python 3. Look at the
release notes [2] for the list of changes in the connector.

We need [1] to obtain the same test result on different Python versions
for tarantool's box-py/call.test.py test.

[^1]: Except replacing of yaml.load() with yaml.safe_load() in tests,
      which is already here.

[1]: tarantool/tarantool-python#186
[2]: https://github.com/tarantool/tarantool-python/releases

Part of #20
Part of tarantool/tarantool#5652
ligurio added a commit to tarantool/tarantool that referenced this pull request Jan 22, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Follows up #5538
ligurio added a commit to tarantool/test-run that referenced this pull request Jan 22, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/tarantool that referenced this pull request Jan 26, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Follows up #5538
ligurio added a commit to tarantool/tarantool that referenced this pull request Jan 27, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Follows up #5538
ligurio added a commit to tarantool/tarantool that referenced this pull request Feb 1, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Follows up #5538
ligurio added a commit to tarantool/test-run that referenced this pull request Feb 1, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Feb 3, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Feb 4, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Feb 4, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Feb 4, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Feb 5, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Feb 5, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 4, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 5, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 6, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 6, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/tarantool that referenced this pull request Mar 9, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Follows up #5538
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 9, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 9, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 9, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 9, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 9, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/tarantool that referenced this pull request Mar 9, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Follows up #5538
Part of #5652
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 10, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 10, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 10, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 12, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/tarantool that referenced this pull request Mar 12, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3] and changes in test-run's commit
853c9532c56e523da68030a1b7956c2e753b917e "python3: fix printing of called box
command".

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Follows up #5538
Part of #5652
ligurio added a commit to tarantool/test-run that referenced this pull request Mar 12, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
Totktonada pushed a commit to tarantool/test-run that referenced this pull request Mar 12, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
Totktonada pushed a commit to tarantool/test-run that referenced this pull request Mar 13, 2021
Related issues and changes:

- Support Python 3 in Tarantool test suite
  tarantool/tarantool#5538
- Python 3 in tarantool-python
  tarantool/tarantool-python#181
  tarantool/tarantool-python#186
- Use Python 3 in a test infrastructure
  tarantool/tarantool#5652

Closes #20
ligurio added a commit to tarantool/tarantool that referenced this pull request Mar 13, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Follows up #5538
ligurio pushed a commit to tarantool/tarantool that referenced this pull request Mar 13, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Follows up #5538
ligurio pushed a commit to tarantool/tarantool that referenced this pull request Mar 13, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Part of #5562
Follows up #5538
ligurio pushed a commit to tarantool/tarantool that referenced this pull request Mar 13, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Part of #5562
Follows up #5538
ligurio pushed a commit to tarantool/tarantool that referenced this pull request Mar 14, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Part of #5652
Follows up #5538
Totktonada added a commit to tarantool/tarantool that referenced this pull request Mar 15, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Part of #5652
Follows up #5538
Totktonada added a commit to tarantool/tarantool that referenced this pull request Mar 15, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Part of #5652
Follows up #5538

(cherry picked from commit 45972c9)
Totktonada added a commit to tarantool/tarantool that referenced this pull request Mar 15, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Part of #5652
Follows up #5538

(cherry picked from commit 45972c9)
Totktonada added a commit to tarantool/tarantool that referenced this pull request Mar 15, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Part of #5652
Follows up #5538

(cherry picked from commit 45972c9)
Totktonada added a commit to tarantool/tarantool that referenced this pull request Mar 16, 2021
Response object is a unpacked msgpack structure, returned by Tarantool.
Nor msgpack-python [1] that used in tarantool-python nor msgpack [2]
itself cannot guarantee an order of keys in unpacked dictionaries.
Therefore we have different keys order with running tests under Python 2
and Python 3, for example box-py/call.test.py. To workaround a problem
proposed a conversion of dictionaries in a tuple to lists before
printing Response object.

Requires changes in tarantool-python [3].

1. msgpack/msgpack-python#164
2. msgpack/msgpack#215
3. tarantool/tarantool-python#186

Part of #5652
Follows up #5538

(cherry picked from commit 45972c9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants