Coder Social home page Coder Social logo

nti.analytics's Introduction

nti.analytics's People

Contributors

jzuech3 avatar papachoco avatar cutz avatar bryanhoke avatar sheldon-smith avatar alexyang06 avatar jamadden avatar austinpgraham avatar hagenrd avatar zacharani avatar

Watchers

 avatar  avatar

nti.analytics's Issues

Test Failures under PyPy 2.7 but not CPython 2.7

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.