py-sdl2 / sdl2 / test / sdl2ext_resources_test.py

Diff from to

sdl2/test/sdl2ext_resources_test.py

         urlpath = "file:%s" % p2url(tfile)
         self.assertRaises(urllib2.URLError, resources.open_url, urlpath)
 
+    @unittest.skipIf(sys.platform=="cli", "IronPython's tarfile module is broken")
     def test_Resources(self):
         self.assertRaises(ValueError, resources.Resources, "invalid")
 
         self.assertIsNotNone(res3.get("rwopstest.txt"))
         self.assertIsNotNone(res3.get("surfacetest.bmp"))
 
+    @unittest.skipIf(sys.platform=="cli", "IronPython's tarfile module is broken")
     def test_Resources_add(self):
         fpath = os.path.join(os.path.dirname(__file__), "resources")
         sfile = os.path.join(fpath, "surfacetest.bmp")
         self.assertIsNotNone(res.get("rwopstest.txt"))
         self.assertRaises(KeyError, res.get, "resources.tar.gz")
 
+    @unittest.skipIf(sys.platform=="cli", "IronPython's tarfile module is broken")
     def test_Resources_get(self):
         fpath = os.path.join(os.path.dirname(__file__), "resources")
 
                 self.assertIsNotNone(res.get("surfacetest.bmp"))
                 self.assertIsNotNone(res.get("rwopstest.txt"))
 
+    @unittest.skipIf(sys.platform=="cli", "IronPython's tarfile module is broken")
     def test_Resources_get_filelike(self):
         fpath = os.path.join(os.path.dirname(__file__), "resources")
         zfile = os.path.join(fpath, "resources.zip")
         self.assertRaises(KeyError, res.get_filelike, "invalid")
         self.assertRaises(KeyError, res.get_filelike, 1234)
 
+    @unittest.skipIf(sys.platform=="cli", "IronPython's tarfile module is broken")
     def test_Resources_get_path(self):
         fpath = os.path.join(os.path.dirname(__file__), "resources")
         zfile = os.path.join(fpath, "resources.zip")
         self.assertRaises(KeyError, res.get_path, "invalid")
         self.assertRaises(KeyError, res.get_path, 1234)
 
+    @unittest.skipIf(sys.platform=="cli", "IronPython's tarfile module is broken")
     def test_Resources_scan(self):
         fpath = os.path.join(os.path.dirname(__file__))
         res = resources.Resources()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.