1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Remove segfaulting miniPythonParser test for now

This commit is contained in:
Timothy Clem 2018-08-29 10:42:36 -07:00
parent 34648a263a
commit 5939a6139d

View File

@ -77,22 +77,3 @@ spec = describe "reprinting" $ do
printed `shouldBe` expected
tree' <- runTask (parse miniRubyParser (Blob printed expectedPath Language.Ruby))
length tree' `shouldSatisfy` (/= 0)
context "Python" $ do
let dir = "test/fixtures/python/reprinting"
let path = dir </> "function.py"
let expectedPath = dir </> "function.out.py"
(src, tree, expected) <- runIO $ do
expected <- blobSource <$> readBlobFromPath (File expectedPath Language.Python)
src <- blobSource <$> readBlobFromPath (File path Language.Python)
tree <- parseFile miniPythonParser path
pure (src, tree, expected)
describe "pipeline" $ do
it "should roundtrip over a wholly-modified tree" $ do
let tagged = mark Refactored tree
let (Right printed) = runReprinter src printingPython tagged
printed `shouldBe` expected
tree' <- runTask (parse miniPythonParser (Blob printed expectedPath Language.Python))
length tree' `shouldSatisfy` (/= 0)