Comments (4)
If I simply remove encoding="utf-8"
the tests run under Python 3.5.0. Apparently the encoding parameter is redundant with universal_newlines=True
.
from apertium-recursive.
The tests now run, but these 2 fail on Ubuntu Xenial and Debian Stretch:
test_output (__main__.GlobalVars) ... ERROR
test_output (__main__.GlobalVarsClipping) ... ERROR
======================================================================
ERROR: test_output (__main__.GlobalVars)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./run_tests.py", line 26, in test_output
actual = subprocess.check_output(args, input=self.input, universal_newlines=True)
File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 708, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['../src/rtx-proc', '-a', 'GlobalVars.bin']' returned non-zero exit status -11
======================================================================
ERROR: test_output (__main__.GlobalVarsClipping)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./run_tests.py", line 26, in test_output
actual = subprocess.check_output(args, input=self.input, universal_newlines=True)
File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 708, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['../src/rtx-proc', '-a', 'GlobalVarsClipping.bin']' returned non-zero exit status -11
from apertium-recursive.
As of 39ed56d the tests pass on Mint 17.2 which is Ubuntu Trusty Tahr. Given which tests are failing I would expect the Xenial build to be the same issue.
from apertium-recursive.
Yup, fixed in 39ed56d - and packaged in Nightly for all platforms except Windows.
from apertium-recursive.
Related Issues (20)
- Case in Pattern Lemmas
- Tag copy pattern for syntax node causes segfault in rtx-proc
- How to match non-ascii lemmas? HOT 4
- Unicode support in label names HOT 1
- segfault if not parenthesis per clause
- warn on using tags that don't appear in any attribute categories HOT 7
- Should categories really fallback to /sl if no /tl? HOT 5
- Rule only works when commenting out unrelated rules? HOT 12
- Pass multiple LUs to a macro HOT 1
- Inserting extra spaces HOT 1
- Blanks changed because of unmatched rules HOT 1
- rule (line) numbers on -T parse tree
- Show the output values in parse --tree HOT 1
- auto-capitalization
- should be a syntax error
- more helpful debug mode
- some compiler warnings?
- capitalization of copied lemmas
- documentation of symbols
- Confusing duplicate lines from -T – what do they mean? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apertium-recursive.