Commit Graph

5 Commits

Author SHA1 Message Date
Simon Albinsson 983ab0fe41 Lets allow the helpers to be helpfull
I had problems transissioning form python 2 to 3 due to imports failing
when running tests. This shows (what i hope) is the correct way of
dealing with imports.
2017-02-01 13:31:16 +01:00
Vegard Nossum 48f4c8dba4 tests: use __file__ to determine library path
By using `os.path.dirname(__file__)` you can run the test from any directory/cwd and it will find the right path to the sample module. Without it you might accidentally import it from the wrong directory (i.e. if you have a development version of your project checked out, but you also have one installed in the system path, you may think that your tests pass when in fact they were testing the system installation rather than the development version).
2016-03-21 10:11:43 +01:00
Brian Forst cc59487590 Added __init__.py to the tests directory so that relative package import works. 2013-02-20 11:37:05 -07:00
Kenneth Reitz 0fa2bd8aae examples 2012-04-16 21:31:15 -04:00
Kenneth Reitz 244958fc69 basics 2012-04-16 20:45:44 -04:00