opennti / nti.analytics Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
There are two failing tests when run under PyPy. All tests pass under CPython. The failing assertion are in two tests:
https://github.com/NextThought/nti.analytics/blob/master/src/nti/analytics/database/tests/test_resources.py#L166
https://github.com/NextThought/nti.analytics/blob/master/src/nti/analytics/database/tests/test_resources.py#L269
Both failures are similar:
Failure in test test_video_play_speed (nti.analytics.database.tests.test_resources.TestCourseResources)
Traceback (most recent call last):
File "///pypy2.7-v7.3.1-osx64/lib-python/2.7/unittest/case.py", line 329, in run
testMethod()
File "///nti.dataserver-pypy/sources/nti.analytics/src/nti/analytics/database/tests/test_resources.py", line 269, in test_video_play_speed
assert_that( play_speed.old_play_speed, is_( str( old_play_speed ) ) )
File "///nti.dataserver-pypy/eggs/PyHamcrest-1.9.0-py2.7.egg/hamcrest/core/assert_that.py", line 43, in assert_that
_assert_match(actual=arg1, matcher=arg2, reason=arg3)
File "///nti.dataserver-pypy/eggs/PyHamcrest-1.9.0-py2.7.egg/hamcrest/core/assert_that.py", line 57, in _assert_match
raise AssertionError(description)
AssertionError:
Expected: '1'
but: was <1>
These tests both pass in CPython. I've stepped through our code (up to the point where we go in sqlalchemy) and nothing jumps out at me. Note the tests pass play speed in as an int
but in CPython the object we are asserting against the property has become a str
and in PyPy it is still an int
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.