Skip to content

Commit

Permalink
blackify test_dlopen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wade-arista committed Nov 23, 2023
1 parent c1cc5ed commit 8f9f1d7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions py_test_env/test_dlopen.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
from ctypes import cdll
import os
from unittest import (
main,
TestCase,
main,
TestCase,
)


class TestMe(TestCase):
def testOne(self):
print(f"LD_LIBRARY_PATH={os.getenv('LD_LIBRARY_PATH')}")
libOne = cdll.LoadLibrary("libone.so")
func = getattr(libOne, "_Z3onev")
self.assertEqual(1, func())
def testOne(self):
print(f"LD_LIBRARY_PATH={os.getenv('LD_LIBRARY_PATH')}")
libOne = cdll.LoadLibrary("libone.so")
func = getattr(libOne, "_Z3onev")
self.assertEqual(1, func())


if __name__ == "__main__":
main()
main()

0 comments on commit 8f9f1d7

Please sign in to comment.