Skip to content
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

Run CPython test suite using QUnit #240

Closed
olemis opened this issue Aug 9, 2015 · 1 comment
Closed

Run CPython test suite using QUnit #240

olemis opened this issue Aug 9, 2015 · 1 comment
Assignees

Comments

@olemis
Copy link
Contributor

olemis commented Aug 9, 2015

Add CPython test cases to the initial QUnit test suite implemented in #234 . This should be one of the most outstanding steps as we work towards full compatibility with CPython standards .

@olemis olemis self-assigned this Aug 9, 2015
@olemis
Copy link
Contributor Author

olemis commented Aug 9, 2015

@PierreQuentel are you working on something similar ? My plan is to keep test code in its original location and running exactly in the same way CPython does .

olemis added a commit that referenced this issue Aug 24, 2015
olemis added a commit that referenced this issue Aug 24, 2015
P.S Even if QUnit reports 33 successes out of 35 tests the only failure listed in test report is test_math.py
olemis added a commit that referenced this issue Aug 24, 2015
…ad index.html faster

Henceforth brython_test_utils will be a package .
Lightweight functions used by index.html will remain in top-level package.
Slow features (e.g. the ones dependent on unittest) will be only loaded by run_qunit.html
amrdraz added a commit to amrdraz/brython that referenced this issue Aug 26, 2015
* upstream/master: (26 commits)
  If js_objects.js[x] is not found, throw a KeyError instead of AttributeError
  Change order of operations in make_dist.py
  Fixes 2 bugs : error reporting with nonlocal + wrong name binding with augmented assignments
  Remove trace in py_generator.js
  Fix bug in abs()
  [import] brython-dev#247 - Rebuild brython.js after merge .
  [import] brython-dev#247 - Remove www/src/libs from sys.path if static_stdlib_import option is set
  Change order of operations in make_dist.py
  Fixes brython-dev#259 : traceback omits frames for functions evaluating return statements
  Remove traces in py_generator.js
  In generators, when generating a function for __next__, if a block contains a "return", don't add the nodes after it. This avoids the messages "SyntaxError: unreachable code after return statement" in the Firefox console.
  Fixes brython-dev#258 : sequence unpacking produces NameError
  Fixes brython-dev#257 : NotImplemented.__class__ should be NotImplementedType
  Fixes brython-dev#249 : Syntax Error on multiline comprehensions
  Update generated scripts
  Fixes brython-dev#253 : some builtin functions that should return None instead return undef
  [tests] brython-dev#240 - Move unittest code to a separate module in order to load index.html faster
  [tests] brython-dev#240 - Fix typos in BrythonModuleTestCase ... 33/35
  [import] brython-dev#240 - Rewrite the QUnit test suite by wrapping unittest test cases around test modules ... FAIL
  [import] Fixes brython-dev#247 - Run make_dist.py to rebuild brython.js
  ...
olemis added a commit to olemis/brython that referenced this issue Sep 11, 2015
When all test cases are loaded the browser window crashes .
Thereby this changeset does not load the whole test suite , but a subset.
I noticed issues with the mapping of CPython test modules onto QUnit modules
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

No branches or pull requests

2 participants