This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
forked from rtyler/py-yajl
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[oilshell] Respect iteration order for OrderedDict.
This also makes the code more consistent -- PyObject_GetIter() is used in both dict and list use cases. In ProcessObject(). - Add unit tests - Fix up runtests.sh to run the tests correctly!
- Loading branch information
Andy C
committed
May 31, 2022
1 parent
eb561e9
commit d10820b
Showing
3 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
#!/bin/sh | ||
# | ||
# Patched this script for Oil | ||
|
||
python setup.py build && PYTHONPATH=.:build/lib.linux-x86_64-2.6 python tests/unit.py && zcat test_data/issue_11.gz| PYTHONPATH=build/lib.linux-x86_64-2.6 ./tests/issue_11.py && python3 setup.py build && PYTHONPATH=build/lib.linux-x86_64-3.1 python3 tests/unit.py | ||
set -o errexit | ||
set -o nounset | ||
|
||
rm -f -v yajl.so | ||
python2 setup.py build_ext --inplace | ||
|
||
PYTHONPATH=. python tests/unit.py | ||
|
||
zcat test_data/issue_11.gz | PYTHONPATH=. ./tests/issue_11.py | ||
|
||
# Not supporting Python 3 | ||
return | ||
|
||
python3 setup.py build && PYTHONPATH=build/lib.linux-x86_64-3.1 python3 tests/unit.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters