kopia lustrzana https://github.com/micropython/micropython-lib
test.support: Addmore functions.
can_symlink() so far returns False for simplicity.pull/118/head
rodzic
e3c3872185
commit
31f20a083f
|
@ -1,5 +1,20 @@
|
|||
import unittest
|
||||
|
||||
|
||||
TESTFN = '@test'
|
||||
|
||||
def run_unittest(*classes):
|
||||
for c in classes:
|
||||
unittest.run_class(c)
|
||||
|
||||
def can_symlink():
|
||||
return False
|
||||
|
||||
def skip_unless_symlink(test):
|
||||
"""Skip decorator for tests that require functional symlink"""
|
||||
ok = can_symlink()
|
||||
msg = "Requires functional symlink implementation"
|
||||
return test if ok else unittest.skip(msg)(test)
|
||||
|
||||
def create_empty_file(name):
|
||||
open(name, "w").close()
|
||||
|
|
Ładowanie…
Reference in New Issue