1. Daniele Tricoli
  2. circuits

Commits

Alessio Deiana  committed 51a97e1

removed use of coverage module in signals test

  • Participants
  • Parent commits 717b675
  • Branches default

Comments (0)

Files changed (3)

File tests/core/signalapp.py

View file
  • Ignore whitespace
 import os
 import sys
 
-from coverage import coverage
-
 from circuits import Component
 from circuits.app import Daemon
 
         f.close()
 
 def main():
-    _coverage = coverage(data_suffix=True)
-    _coverage.start()
-
     pidfile = os.path.abspath(sys.argv[1])
     signalfile = os.path.abspath(sys.argv[2])
     App(pidfile, signalfile).run()
 
-    _coverage.stop()
-    _coverage.save()
-
 if __name__ == "__main__":
     main()

File tests/net/test_tcp.py

View file
  • Ignore whitespace
         assert pytest.wait_for(client, "disconnected")
         assert pytest.wait_for(server, "disconnected")
 
-        server.push(Close())
+        server.fire(Close())
         assert pytest.wait_for(server, "closed")
     finally:
         m.stop()
         assert pytest.wait_for(client, "disconnected")
         assert pytest.wait_for(server, "disconnected")
 
-        server.push(Close())
+        server.fire(Close())
         assert pytest.wait_for(server, "closed")
     finally:
         m.stop()

File tests/net/test_unix.py

View file
  • Ignore whitespace
         assert pytest.wait_for(client, "disconnected")
         assert pytest.wait_for(server, "disconnected")
 
-        server.push(Close())
+        server.fire(Close())
         assert pytest.wait_for(server, "closed")
     finally:
         m.stop()