Subvertpy failed on unittest with Python 2.7 under Windows.(SVN 1.6.17)

Bug #943131 reported by Yonggang Luo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subvertpy
Incomplete
Undecided
Unassigned

Bug Description

Running unittest without install.
EEEEEEEE...........................................................E............EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE......EEEEEEEEEEEEEEE...EEEEEEEEEEEEE
EEEEEEEEEEEEEEEEEEEEEEEEEEE...EEEE......
ERROR: test_add (subvertpy.tests.test_client.TestClient)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "build\lib.win32-2.7\subvertpy\tests\test_client.py", line 49, in setUp
    self.repos_url = self.make_client("d", "dc")
  File "build\lib.win32-2.7\subvertpy\tests\__init__.py", line 388, in make_client
    self.make_checkout(repos_url, clientpath)
  File "build\lib.win32-2.7\subvertpy\tests\__init__.py", line 245, in make_checkout
    self.client_ctx.checkout(repos_url, relpath, "HEAD")
SubversionException: ('Unable to open an ra_local session to URL', 180001)

ERROR: test_load_fs_invalid (subvertpy.tests.test_repos.TestRepository)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "build\lib.win32-2.7\subvertpy\tests\__init__.py", line 84, in tearDown
    shutil.rmtree(self.test_dir)
  File "C:\Python27\lib\shutil.py", line 244, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python27\lib\shutil.py", line 244, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python27\lib\shutil.py", line 249, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "C:\Python27\lib\shutil.py", line 247, in rmtree
    os.remove(fullname)
WindowsError: [Error 5] Access is denied: 'c:\\users\\dreamkxd\\appdata\\local\\temp\\tmpdguesq\\foo\\db\\format'

Revision history for this message
Yonggang Luo (luoyonggang) wrote :
Download full text (5.0 KiB)

The test result by apply the patch unitest-win32

Running unittest without install.
.E..E..............................................................E.................................FF.......F...............................F.F..E..
..................
======================================================================
ERROR: test_add_recursive (subvertpy.tests.test_client.TestClient)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "build\lib.win32-2.7\subvertpy\tests\test_client.py", line 95, in test_add_recursive
    e = adm.entry(os.path.join(os.getcwd(), "dc", "trunk"))
KeyError: "No such entry 'c:\\users\\dreamkxd\\appdata\\local\\temp\\tmpjq6s9p\\dc\\trunk'"

======================================================================
ERROR: test_diff (subvertpy.tests.test_client.TestClient)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "build\lib.win32-2.7\subvertpy\tests\test_client.py", line 123, in test_diff
    (outf, errf) = self.client.diff(1, 2, self.repos_url, self.repos_url)
OSError: [Errno 13] Permission denied

======================================================================
ERROR: test_time_from_cstring_independent_from_dst (subvertpy.tests.test_properties.TestProperties)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "build\lib.win32-2.7\subvertpy\tests\test_properties.py", line 44, in test_time_from_cstring_independent_from_dst
    time.tzset()
AttributeError: 'module' object has no attribute 'tzset'

======================================================================
ERROR: test_probe_try (subvertpy.tests.test_wc.AdmTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "build\lib.win32-2.7\subvertpy\tests\test_wc.py", line 300, in test_probe_try
    self.assertEquals("checkout", adm.probe_try(os.path.join("checkout", "bar")).access_path())
AttributeError: 'NoneType' object has no attribute 'access_path'

======================================================================
FAIL: test_get_repos_root (subvertpy.tests.test_ra.TestRemoteAccess)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "build\lib.win32-2.7\subvertpy\tests\test_ra.py", line 83, in test_get_repos_root
    self.assertEqual(self.repos_url, self.ra.get_repos_root())
AssertionError: 'file:///c:/users/dreamkxd/appdata/local/temp/tmpfzgvfs/d' != 'file:///C:/users/dreamkxd/appdata/local/temp/tmpfzgvfs/d'

======================================================================
FAIL: test_get_url (subvertpy.tests.test_ra.TestRemoteAccess)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "build\lib.win32-2.7\subvertpy\tests\test_ra.py", line 89, in test_get_url
    self.assertEqual(self.repos_url, self.ra.get_url())
AssertionError: 'file:///c:/users/dreamkxd/appdata/local/temp/tmpbzkesw/d' != 'file:///C:/users/dreamkxd/appdata/local/temp/tmpbzkesw/d'

===================...

Read more...

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Is this still the case?

Jelmer Vernooij (jelmer)
Changed in subvertpy:
status: New → Incomplete
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.