[csw-devel] SF.net SVN: gar:[13880] csw/mgar/gar/v2/lib/python/inspective_package_test. py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Mar 20 15:53:29 CET 2011


Revision: 13880
          http://gar.svn.sourceforge.net/gar/?rev=13880&view=rev
Author:   wahwah
Date:     2011-03-20 14:53:29 +0000 (Sun, 20 Mar 2011)

Log Message:
-----------
checkpkg: Using the new magic flag in a unit test.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/inspective_package_test.py

Modified: csw/mgar/gar/v2/lib/python/inspective_package_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/inspective_package_test.py	2011-03-20 14:53:09 UTC (rev 13879)
+++ csw/mgar/gar/v2/lib/python/inspective_package_test.py	2011-03-20 14:53:29 UTC (rev 13880)
@@ -37,7 +37,7 @@
     self.mox.StubOutWithMock(magic, 'open')
     magic.open(0).AndReturn(magic_cookie_mock)
     magic_cookie_mock.load()
-    magic_cookie_mock.setflags(magic.MAGIC_MIME)
+    magic_cookie_mock.setflags(magic.MIME)
     magic_cookie_mock.file(
         u'/fake/path/CSWfoo/root/foo-file').AndReturn(
             "application/x-executable")


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list