mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Fix test
This commit is contained in:
@ -13,7 +13,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
import io
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
@ -449,7 +448,7 @@ class ProjectConfig(ProjectConfigBase, ProjectConfigDirsMixin):
|
|||||||
path = path or self.path
|
path = path or self.path
|
||||||
if path in self._instances:
|
if path in self._instances:
|
||||||
del self._instances[path]
|
del self._instances[path]
|
||||||
with io.open(path or self.path, mode="w+", encoding="utf8") as fp:
|
with open(path or self.path, "w+") as fp:
|
||||||
fp.write(CONFIG_HEADER.strip() + "\n\n")
|
fp.write(CONFIG_HEADER.strip() + "\n\n")
|
||||||
self._parser.write(fp)
|
self._parser.write(fp)
|
||||||
fp.seek(0)
|
fp.seek(0)
|
||||||
|
Reference in New Issue
Block a user