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

Windows 7: user_data_dir returns type 'unicode' #27

Closed
eddyp opened this issue Mar 22, 2013 · 1 comment
Closed

Windows 7: user_data_dir returns type 'unicode' #27

eddyp opened this issue Mar 22, 2013 · 1 comment

Comments

@eddyp
Copy link
Contributor

eddyp commented Mar 22, 2013

test_dirs and test_helpers fail on Windows 7 because user_data_dir returns a unicode string.

BTW, @mcepl, the default error reporting verbosity is insufficient. I am not familiar with unittest and used to py.test's default verbose error reporting, how does one increase the verbosity of error reporting to obtain the details of the returned values which were tested?

I had to manually call the function myself in a console to get its type. Py.test does that for you automatically.

(Probably my question isn't clear, I'll provide an this evening an example output to get the gist of it.)

@mcepl
Copy link
Contributor

mcepl commented Mar 22, 2013

If using normal self.assertEqual method you should get FOR FAILED TESTS both returned values and diff between observed and expected values. Otherwise, verbosity is controlled by the verbosity argument (so I have set up in setup.py verbosity=2). If you don’t use setup.py you can use on command line -vvv argument (e.g., python3 -munittest discover -vvv).

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