def testModeStrings(self):
        # check invalid mode strings
        for mode in ("", "aU", "wU+"):
            try:
                f = self.open(TESTFN, mode)
            except ValueError:
                pass
            else:
                f.close()
                self.fail(mode % '%r is an invalid file mode')
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_file.py/OtherFileTests.testModeStrings/swapped operands of `%`