question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

autotest warnings

See original GitHub issue

hi there, Im running into problems running the autotests, Clean install in clean virtualenv, latest python 3.5 downloaded direct 20 aug. I have tried to run the created files however I also get a constant return of missing modules. That I can probably work through however Im wondering if this is due to something not completing due to the build warnings ` (py3.5Test) lenovo% transcrypt -b autotest.py
Transcrypt ™ Python to JavaScript Small Sane Subset Transpiler Version 3.5.213 Copyright © Geatec Engineering. License: Apache 2.0

Saving result in: /home/dave/.virtualenvs/py3.5Test/lib/python3.5/site-packages/transcrypt/development/automated_tests/transcrypt/__javascript__/autotest.js
Saving minified result in: /home/dave/.virtualenvs/py3.5Test/lib/python3.5/site-packages/transcrypt/development/automated_tests/transcrypt/__javascript__/autotest.min.js
/home/dave/.virtualenvs/py3.5Test/lib/python3.5/site-packages/transcrypt/development/automated_tests/transcrypt/__javascript__/autotest.js:3234: WARNING - unreachable code
                        catch (__except0__) {
                        ^

/home/dave/.virtualenvs/py3.5Test/lib/python3.5/site-packages/transcrypt/development/automated_tests/transcrypt/__javascript__/autotest.js:3245: WARNING - unreachable code
                        catch (__except0__) {
                        ^

/home/dave/.virtualenvs/py3.5Test/lib/python3.5/site-packages/transcrypt/development/automated_tests/transcrypt/__javascript__/autotest.js:3256: WARNING - unreachable code
                        catch (__except0__) {
                        ^

/home/dave/.virtualenvs/py3.5Test/lib/python3.5/site-packages/transcrypt/development/automated_tests/transcrypt/__javascript__/autotest.js:3267: WARNING - unreachable code
                        catch (__except0__) {
                        ^

0 error(s), 4 warning(s)

Ready
`

Hope someone can help me in the right direction

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ihphcommented, Aug 28, 2016

As a workaround you can manually add the path to the transcript modules in __main__.py in your case it would look like this … sys.path.insert(1,‘/home/dave/.virtualenvs/py3.5Test/lib/python3.5/site-packages/transcrypt/development/automated_tests/transcrypt’) print (transpilerDir) print (modulesDir) print (sys.path)

…seems to work now

0reactions
JdeHcommented, Nov 2, 2016

Haven’t been able to get to the bottom of this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Autotest Best Practices
TestWarn should be used when side effects to the test running are encountered but are not directly related to the test running. For...
Read more >
How can I immediately fail an auto test if a warning occurs
I want to instantly fail any auto test when a warning is printed in the tested code, so that I don't miss it...
Read more >
Automatic Package Testing • autotest - Docs
autotest. Automatic mutation testing of R packages. ... The result is a data.frame of errors, warnings, and other diagnostic messages issued during package ......
Read more >
Autotest | QA Systems
Warning messages are written to the AutoTest Generation Report, showing where and why it was not possible to generate test cases, indicating possible ......
Read more >
autotest COVID-VIRO ALL IN®
Precautions and warnings · Do not use nasal sprays in the 12 hours before carrying out the test. · The diluent contains a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found