mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Remove segfaulting miniPythonParser test for now
This commit is contained in:
parent
34648a263a
commit
5939a6139d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user