Permalink
Browse files

Fix tests for Python 3.2

  • Loading branch information...
1 parent 849ee3d commit d2ad9e044261f98aaec0eb89ff232b1755cebb58 @bradleyayers committed Oct 11, 2012
Showing with 11 additions and 3 deletions.
  1. +8 −0 .coveragerc
  2. +1 −0 setup.py
  3. +1 −1 tests/__init__.py
  4. +1 −2 tox.ini
View
@@ -0,0 +1,8 @@
+[run]
+source =
+ django_attest
+ tests
+
+
+[html]
+directory = reports/htmlcov
View
@@ -14,6 +14,7 @@
packages=['django_attest'],
install_requires=['Django >=1.2', 'Attest >=0.5', 'distribute', 'six'],
+ use_2to3=True,
test_loader='tests:loader',
test_suite='tests.suite',
View
@@ -22,5 +22,5 @@
@junit.test
def make_junit_output():
import xmlrunner
- runner = xmlrunner.XMLTestRunner(output=b'reports')
+ runner = xmlrunner.XMLTestRunner(output=str('reports'))
runner.run(suite.test_suite())
View
@@ -1,8 +1,7 @@
[testenv]
commands =
python -W error {envbindir}/coverage run setup.py test []
- mkdir -p reports
- coverage xml --include=django_attest/* -o reports/coverage.xml
+ coverage html
[tools]
testing =

0 comments on commit d2ad9e0

Please sign in to comment.