hayd / pep8radius

PEP8 clean only the parts of the files touched since the last commit, a previous commit or (the merge-base of) a branch.
MIT License
183 stars 9 forks source link

Windows test failures #76

Open schodge opened 10 years ago

schodge commented 10 years ago

Sorry for being AWOL lately. Here's the current output of tests on one Windows box. Accidentally reverted to an older verison of git (1.8.x), not sure if that's the cause of anything:

λ nosetests .\tests
.F........FSSSSSSSS......F.SSSSSSSS.S.
======================================================================
FAIL: test_autopep8_args (tests.test_main.TestMain)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\GitHub\pep8radius\tests\test_main.py", line 27, in test_autopep8_args
    self.assertEqual(us.ignore, them.ignore)
AssertionError: set(['E24']) != [u'E24']

======================================================================
FAIL: test_from_diff (tests.test_radius.TestRadiusFromDiff)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\GitHub\pep8radius\tests\test_radius.py", line 181, in test_from_diff
    self.assertEqual(out.getvalue(), exp_diff)
AssertionError: '' != '--- original\\foo.py\n+++ fixed\\foo.py\n@@ -4,7 +4,9 @@\n   return a + b\n \n foo = 1; bar = 2; print(foo * bar)\n-a=1; b=42; c=3\n+a = 1\n+b = 42\n+c = 3\n d=7\n \n def f(x = 1, y = 2):\n'

======================================================================
FAIL: test_one_line_from_subdirectory (tests.test_vcs.TestRadiusGit)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\GitHub\pep8radius\tests\test_radius.py", line 92, in test_one_line_from_subdirectory
    cwd=SUBTEMP_DIR)
  File "c:\GitHub\pep8radius\tests\test_radius.py", line 50, in check
    self.assert_equal(out.getvalue(), exp_diff, test_name)
  File "c:\GitHub\pep8radius\tests\test_radius.py", line 74, in assert_equal
    'expected', 'result'))
AssertionError: --- expected\test_one_line
+++ result\test_one_line
@@ -1,5 +1,5 @@
---- c:\GitHub\pep8radius\tests\temp\subtemp\temp.py
-+++ c:\GitHub\pep8radius\tests\temp\subtemp\temp.py
+--- c:\GitHub\pep8radius\tests\temp\subtemp/temp.py
++++ c:\GitHub\pep8radius\tests\temp\subtemp/temp.py
 @@ -4,7 +4,9 @@
    return a + b

----------------------------------------------------------------------
Ran 38 tests in 11.170s

FAILED (SKIP=17, failures=3)
hayd commented 10 years ago

No worries, hope you've been keeping yourself busy!

p.s. if you are using conda, you might like to check out ctox for testing on different platforms. :)