test suite fails on windows in test.test_dynamic_inspector.TestInspectPointOfEntryWithCapturedLog.test_changes_current_directory_to_the_projects_root

Bug #546455 reported by Pieter Van Dyck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pythoscope
New
Undecided
Unassigned

Bug Description

environment:
Windows Vista
Python 2.5.4
pythoscope 0.4.3

I tweaked the failing test to use a more specific assert so as to better show what goes on.
Apparently the value for 'project.path' gets interpreted one too many times somehow, thereby replacing \a and \t.

relevant result of running "setup.py test":

======================================================================
FAIL: test.test_dynamic_inspector.TestInspectPointOfEntryWithCapturedLog.test_changes_current_directory_to_the_projects_root
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\tools\python25\lib\site-packages\nose-0.11.0-py2.5.egg\nose\case.py", line 183, in runTest
    self.test(*self.arg)
  File "C:\development\installed\pythoscope-0.4.3\test\test_dynamic_inspector.py", line 948, in test_changes_current_directory_to_the_projects_root
    inspect_point_of_entry(poe)
  File "C:\development\installed\pythoscope-0.4.3\pythoscope\inspector\dynamic.py", line 82, in inspect_point_of_entry
    point_of_entry.execution)
  File "C:\development\installed\pythoscope-0.4.3\pythoscope\inspector\dynamic.py", line 96, in inspect_code_in_context
    tracer.trace(code)
  File "C:\development\installed\pythoscope-0.4.3\pythoscope\tracer.py", line 140, in trace
    self.top_level_function()
  File "C:\development\installed\pythoscope-0.4.3\pythoscope\tracer.py", line 107, in function
    exec code in {}
  File "<string>", line 1, in <module>
  File "C:\development\installed\pythoscope-0.4.3\test\assertions.py", line 58, in assert_equal_strings
    assert_equal(s1, s2, "Strings not equal. Diff:\n\n%s" % ''.join(difflib.ndiff(s1.splitlines(True), s2.splitlines(True))))
AssertionError: Strings not equal. Diff:

- c:\users\windows\appdata\local\temp\pythoscope-3j77xf? ^^ ^^
+ c:\users\windowsppdata\local emp\pythoscope-3j77xf? ^ ^

----------------------------------------------------------------------
Ran 277 tests in 5.163s

FAILED (failures=1)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.