Re: Weird: pytest generates "a" and "b" files

2018-10-15 Thread Edward K. Ream
> This has nothing to do with recent work.  I am executing pytest from the 
command line on Windows. 

Mystery solved, and fixed at 16011ec6. The culprit was python3_test.py.  
python3_test.py created the "a" and "b" files with module level code!

I found this file by brute force, deleting all files from the unittest 
directory and then adding files back until the problem reappeared. The 
problem did not happen during unit testing because `@test Python3 features` 
does not import this file, it merely compiles it ast.parse. In contrast, 
pytest actually imports the file.

This code has now been disabled with an `if 0:` statement, which retains 
the code for ast.parse without doing anything harmful at import time.  A 
relatively small price to pay for making pytest work smoothly.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Weird: pytest generates "a" and "b" files

2018-10-15 Thread Edward K. Ream
On Mon, Oct 15, 2018 at 8:06 AM Edward K. Ream  wrote:

> This has nothing to do with recent work.  I am executing pytest from the
> command line on Windows.
>
> pyflakes (without args) or even pyflakes --setup-plan generates two empty
> text files, named "a" and "b" in the present directory.  This is true even
> if no fixtures are found!  I have looked in vain for any bug report.
>

And the --basetemp option has no effect.  This is quite a mystery.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.