fix urllib_test.v

pull/1910/head
Alexander Medvednikov 2019-09-09 14:21:18 +03:00
parent 00687de43b
commit 7fc678c961
2 changed files with 10 additions and 14 deletions

View File

@ -1056,7 +1056,7 @@ fn (p mut Parser) close_scope() {
break
}
// Clean up memory, only do this for V compiler for now
if p.pref.building_v && v.is_alloc {
if p.pref.building_v && v.is_alloc && !p.pref.is_test {
if v.typ.starts_with('array_') {
//if false && p.returns {
if p.returns {

View File

@ -1,10 +1,6 @@
// Copyright (c) 2019 Alexander Medvednikov. All rights reserved.
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.
// urllib parses URLs and implements query escaping.
// Package url parses URLs and implements query escaping.
// See RFC 3986. This package generally follows RFC 3986, except where
// See RFC 3986. This module generally follows RFC 3986, except where
// it deviates for compatibility reasons.
// Based off: https://github.com/golang/go/blob/master/src/net/url/url.go