File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,12 @@ def next_byte():
463
463
464
464
465
465
if __name__ == "__main__" :
466
+ # Work around the fact that one of the local files is called
467
+ # types.py, which breaks some versions of python.
468
+ import os , sys
469
+
470
+ path = os .path .abspath (os .path .dirname (__file__ ))
471
+ sys .path .remove (path )
466
472
import argparse
467
473
468
474
parser = argparse .ArgumentParser (
@@ -487,12 +493,6 @@ def next_byte():
487
493
# Tests.
488
494
############################################################################
489
495
if args .test :
490
- # Work around the fact that one of the local files is calles
491
- # types.py, which breaks some versions of python.
492
- import os , sys
493
-
494
- path = os .path .abspath (os .path .dirname (__file__ ))
495
- sys .path .remove (path )
496
496
import unittest
497
497
498
498
class TestCompiler (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments